Created
September 16, 2013 11:04
-
-
Save level09/6579270 to your computer and use it in GitHub Desktop.
nginx in front of apache
This file contains hidden or 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
server { | |
listen 80; | |
index index.html; | |
server_name alarabiya.net www.alarabiya.net; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:8080; | |
} | |
location ~* ^.+.(gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ { | |
root /www/ara.net/; | |
access_log off; | |
expires 30d; | |
add_header X-Whom alarabiya-nginx; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment