Last active
April 16, 2017 04:10
-
-
Save agalwood/497f1d49a3e97b271193fb48d17263e3 to your computer and use it in GitHub Desktop.
zanphp.io static nginx conf
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
server { | |
listen 80; | |
server_name s.zanphp.io; | |
charset utf-8; | |
access_log /data/logs/nginx/s.zanphp.access.log main; | |
error_log /data/logs/nginx/s.zanphp.error.log; | |
root /home/www/zanphp.io/public; | |
index index.html index.htm index.php; | |
error_page 404 /404.html; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root html; | |
} | |
location = /404.html { | |
root html; | |
} | |
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ | |
{ | |
expires 30d; | |
} | |
location ~ .*\.(js|css)?$ | |
{ | |
expires 12h; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment