Last active
October 13, 2016 13:53
-
-
Save isummation/4a2ed481cd53da481313c123e9029d60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Main Lucee 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-Forwarded-Proto $scheme; | |
proxy_set_header X-Real-IP $remote_addr; | |
} | |
#This is for static content | |
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { | |
access_log off; | |
gzip_static on; | |
expires 1w; | |
add_header Cache-Control public; | |
add_header ETag ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment