nginx
-
This commit is contained in:
parent
739a8b435b
commit
b5d4101888
@ -5,14 +5,14 @@ upstream nb_app_unicorn {
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name nicolasbally.com;
|
server_name nicolasbally.com;
|
||||||
root /home/web/auclair_app/current/public;
|
root /home/web/nb_app/current/public;
|
||||||
try_files $uri/index.html $uri @unicorn;
|
try_files $uri/index.html $uri @unicorn;
|
||||||
|
|
||||||
location @unicorn {
|
location @unicorn {
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_pass http://auclair_app_unicorn;
|
proxy_pass http://nb_app_unicorn;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_page 500 502 503 504 /500.html;
|
error_page 500 502 503 504 /500.html;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user