Nginx
URL Rewriting for Nginx web server.
Example Nginx configuration
1
# nginx configuration
2
location ~ .*/(flex2gateway|jrunscripts|cfide|cf_scripts|cfformgateway|cffileservlet|railo-context|lucee|files|images|javascripts|miscellaneous|stylesheets|robots.txt|favicon.ico|sitemap.xml|rewrite.cfm)($|/.*$) { }
3
4
location / {
5
rewrite ^(.*)$ https://YOURDOMAIN.com/$1 redirect;
6
rewrite ^/.*/index.cfm/(.*)$ /rewrite.cfm/$1 break;
7
rewrite ^(.*)$ /rewrite.cfm/$1 break;
8
}
Copied!
Export as PDF
Copy link
Edit on GitHub