From 0bd0862e5fb842c88338b5b039379f4038587806 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Sat, 19 Oct 2013 16:46:50 +0200 Subject: [PATCH] Ajout : lhc-www/http.conf Ajout : etc/nginx/site.d/lhc-www/http.conf --- etc/nginx/site.d/lhc-www/http.conf | 7 +++++++ etc/nginx/site.d/lhc-www/site.conf | 4 +--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 etc/nginx/site.d/lhc-www/http.conf diff --git a/etc/nginx/site.d/lhc-www/http.conf b/etc/nginx/site.d/lhc-www/http.conf new file mode 100644 index 0000000..4c5740d --- /dev/null +++ b/etc/nginx/site.d/lhc-www/http.conf @@ -0,0 +1,7 @@ +server { + listen 80; + server_name + heureux-cyclage.org; + + return 301 http://www.heureux-cyclage.org$request_uri; + } diff --git a/etc/nginx/site.d/lhc-www/site.conf b/etc/nginx/site.d/lhc-www/site.conf index 6c3729c..da1e35e 100644 --- a/etc/nginx/site.d/lhc-www/site.conf +++ b/etc/nginx/site.d/lhc-www/site.conf @@ -1,7 +1,5 @@ server_name - www.heureux-cyclage.org - heureux-cyclage.org - devel.heureux-cyclage.org; + www.heureux-cyclage.org; root /home/www/data/lhc-www/www; index index.php; -- 2.20.1