Last active
January 24, 2016 12:29
-
-
Save koi-chan/4d6d31c325ee39692a8e 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
# vim: filetype=nginx | |
server { | |
listen 80; | |
server_name dodontof.example.com; | |
root /home/nginx/dodontof.example.com/public_html; | |
index index.html index.htm; | |
client_max_body_size 128M; | |
access_log /home/nginx/dodontof.example.com/logs/access.log combined; | |
error_log /home/nginx/dodontof.example.com/logs/error.log; | |
location ~ ^/.*\.rb$ { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Proto $scheme; | |
proxy_set_header Host $http_host; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.html; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment