routes & nginx prod
This commit is contained in:
parent
00cf14ce44
commit
a179089ffc
@ -4,7 +4,7 @@ upstream pic_vert_app_unicorn {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name new2.lepicvert.org new.lepicvert.org lepicvert.org;
|
server_name lepicvert.org;
|
||||||
root /home/web/pic_vert_app/current/public;
|
root /home/web/pic_vert_app/current/public;
|
||||||
try_files $uri/index.html $uri @unicorn;
|
try_files $uri/index.html $uri @unicorn;
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ server {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
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;
|
rewrite ^(.*) http://lepicvert.org$1 permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ Survey::Application.routes.draw do
|
|||||||
get '*url.:f' => 'public/menu_items#redirect', :f => "html"
|
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
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user