nginx production

This commit is contained in:
Nicolas Bally 2014-11-07 20:16:47 +01:00
parent 12c8c65886
commit 47f9e7a1b9

View File

@ -4,7 +4,7 @@ upstream cris_app_unicorn {
server {
listen 80;
server_name cris.quartz.xyz;
server_name cris-graphic.com;
root /home/web/cris_app/current/public;
try_files $uri/index.html $uri @unicorn;
@ -24,6 +24,6 @@ server {
server {
listen 80;
server_name www.cris.quartz.xyz;
rewrite ^(.*) http://cris.quartz.xyz$1 permanent;
server_name www.cris.quartz.xyz www.cris-graphic.com;
rewrite ^(.*) http://cris-graphic.com$1 permanent;
}