Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nginx default proxy example for rails
server {
#root /usr/share/nginx/www;
root /home/myuser/blog/public;
index index.html index.htm;
server_name app.hostname;
location ~ ^/assets/ {
root /home/myuser/blog/app/assets/$1;
}
location / {
proxy_pass http://127.0.0.1:3000;
}
#location /doc {
# root /usr/share;
# autoindex on;
# allow 127.0.0.1;
# deny all;
#}
#location /images {
# root /usr/share;
# autoindex off;
#}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment