Skip to content

Instantly share code, notes, and snippets.

@rodionbykov
Last active November 7, 2015 20:15
Show Gist options
  • Save rodionbykov/8b6c029423ceaa7e497d to your computer and use it in GitHub Desktop.
Save rodionbykov/8b6c029423ceaa7e497d to your computer and use it in GitHub Desktop.
# File: nginx.conf
server {
listen 8000;
server_name localhost;
location / {
root c:/wwwroot;
index index.cfm index.html index.htm;
}
# Main Railo proxy handler
location ~ \.(cfm|cfml|cfc|jsp|cfr)(.*)$ {
proxy_pass http://127.0.0.1:8888;
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment