Hi
I think my problem is with NGINX rather than Lucee but it is just odd. At the moment I am getting the following error from Nginx when proxying to Lucee.
rewrite or internal redirection cycle while redirect to named location "@rewrites", client: 127.0.0.1, server: example.local, request: "GET /security HTTP/1.1", host: "example.local"
Here is my Nginx proxy conf, and I can navigate to http://127.0.0.1:8052 fine.
location / {
# Rewrite rules and other criterias can go here
# Remember to avoid using if() where possible (http://wiki.nginx.org/IfIsEvil)
try_files $uri $uri/ @rewrites;
}
location @rewrites {
rewrite ^/(.*)? /index.cfm/$1 last;
}
location ~* \.(cfm|cfc|cfr)$ {
set $path_info $request_uri;
proxy_pass http://127.0.0.1:8052;
proxy_read_timeout 100s;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Tomcat-DocRoot $document_root;
proxy_set_header X-ModCFML-SharedKey 8DoB0PzqdMn4zo0Y2bq7dzqynbqBVsK0piuNslpNU6982KaiCqVT8X;
proxy_set_header X-Webserver-Context $lucee_context;
# FOR SSL
proxy_set_header X-HTTPS 'True';
}
The rewrite rules are copied from my server where this is running fine which in turn came from the examples in the Lucee Docker files lines 9-19
Any help or pointers appreciated.
Andy