Created
August 31, 2010 07:58
-
-
Save sr3d/558699 to your computer and use it in GitHub Desktop.
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; | |
server_name marrily.com; | |
root /var/www/current/public; | |
passenger_enabled on; | |
rails_env production; | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
# make sure gzip does not lose large gzipped js or css files | |
# see http://blog.leetsoft.com/2007/7/25/nginx-gzip-ssl | |
gzip_buffers 16 8k; | |
# Disable gzip for certain browsers. | |
gzip_disable "MSIE [1-6].(?!.*SV1)"; | |
location /images { | |
expires 1y; | |
add_header Cache-Control public; | |
} | |
if ($host = 'www.marrily.com') { | |
rewrite ^/(.*)$ http://marrily.com/$1 permanent; | |
} | |
location /blog { | |
proxy_redirect off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
#add_header X-SR3D-DEBUG "$Host"; | |
proxy_pass http://127.0.0.1:81; | |
} | |
#location /admin { | |
# passenger_enabled on; | |
# rails_env production; | |
# auth_basic "Restricted"; | |
# auth_basic_user_file server/htpasswd; | |
#} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment