dépôts
/
lhc
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
decorrelation SITE et sous domain
[lhc/ansible.git]
/
templates
/
nginx_www_common.j2
diff --git
a/templates/nginx_www_common.j2
b/templates/nginx_www_common.j2
index
829056c
..
1168977
100644
(file)
--- a/
templates/nginx_www_common.j2
+++ b/
templates/nginx_www_common.j2
@@
-1,6
+1,7
@@
server_name
{{ DOMAIN }}.{{ TLD }}
server_name
{{ DOMAIN }}.{{ TLD }}
- www.{{ DOMAIN }}.{{ TLD }};
+ {{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }};
+rewrite ^/(.*) http://{{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }}/$1 permanent;
root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/;
index index.html;
root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/;
index index.html;