Created
October 17, 2013 23:15
-
-
Save diogobaeder/7033972 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
server { | |
listen 80; | |
server_name static.mysite.com.br; | |
access_log /var/log/nginx/static.mysite.access.log; | |
error_log /var/log/nginx/static.mysite.error.log; | |
add_header Host $server_name; | |
add_header X-Server $hostname; | |
gzip on; | |
gzip_min_length 1000; | |
gzip_types text/plain text/html text/css text/xml application/x-javascript application/xml application/atom+xml text/javascript application/json; | |
client_max_body_size 50m; | |
send_timeout 3600; | |
keepalive_timeout 3600; | |
fastcgi_read_timeout 3600; | |
proxy_read_timeout 600; | |
proxy_send_timeout 600; | |
location ^~ / { | |
root /srv/mysite/mysite/static; | |
if ($query_string) { | |
expires max; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment