✨: redirect nintendojofr.com to nintendojo.fr
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
server {
|
||||
{% include './templates/header.conf.j2' %}
|
||||
root /srv/http/forum.nintendojofr.com/;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
return 301 https://forum.nintendojo.fr$request_uri;
|
||||
}
|
||||
}
|
@@ -1,14 +0,0 @@
|
||||
server {
|
||||
{% include './templates/header.conf.j2' %}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web_backend_{{ item.split('.')|join('_') }};
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
}
|
||||
|
||||
upstream web_backend_{{ item.split('.')|join('_') }} {
|
||||
# If you have a garage instance locally.
|
||||
server [::1]:3902;
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
server {
|
||||
listen *:443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
ssl_certificate /etc/x509/intendo.fr/fullchain.cer;
|
||||
ssl_certificate_key /etc/x509/intendo.fr/intendo.fr.key;
|
||||
server_name intendo.fr www.intendo.fr;
|
||||
access_log /var/log/intendo.fr.access.log combined;
|
||||
access_log syslog:server=unix:/dev/log combined;
|
||||
error_log /var/log/intendo.fr.error.log;
|
||||
error_log syslog:server=unix:/dev/log;
|
||||
|
||||
location / {
|
||||
return 302 https://www.nintendojo.fr$request_uri;
|
||||
}
|
||||
}
|
||||
|
19
roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2
Normal file
19
roles/nginx/templates/vhosts/www.nintendojofr.com.conf.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
## WP NintendojoFR
|
||||
server {
|
||||
listen *:443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name nintendojofr.com www.nintendojofr.com;
|
||||
access_log /var/log/nginx/nintendojofr.com.access.log combined;
|
||||
access_log syslog:server=unix:/dev/log combined;
|
||||
error_log /var/log/nginx/nintendojofr.com.error.log;
|
||||
error_log syslog:server=unix:/dev/log;
|
||||
ssl_certificate /etc/x509/nintendojofr.com/fullchain.cer;
|
||||
ssl_certificate_key /etc/x509/nintendojofr.com/nintendojofr.com.key;
|
||||
|
||||
root /srv/http/www.nintendojofr.com/;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
return 301 https://www.nintendojo.fr;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user