routes & nginx prod

This commit is contained in:
Nicolas Bally 2015-11-18 10:03:10 +01:00
parent 00cf14ce44
commit a179089ffc
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ upstream pic_vert_app_unicorn {
server {
listen 80;
server_name new2.lepicvert.org new.lepicvert.org lepicvert.org;
server_name lepicvert.org;
root /home/web/pic_vert_app/current/public;
try_files $uri/index.html $uri @unicorn;
@ -24,7 +24,7 @@ server {
server {
listen 80;
server_name www.lepicvert.org;
server_name www.lepicvert.org new2.lepicvert.org new.lepicvert.org www.lepicvert.asso.fr lepicvert.asso.fr;
rewrite ^(.*) http://lepicvert.org$1 permanent;
}

View File

@ -251,7 +251,7 @@ Survey::Application.routes.draw do
get '*url.:f' => 'public/menu_items#redirect', :f => "html"
root 'public/menu_items#show' ,:constraints => {:domain => ["lepicvert.org"], :subdomain => ["new"]}
root 'public/menu_items#show' ,:constraints => {:domain => ["lepicvert.org"]}
end