This commit is contained in:
j 2021-11-21 10:09:09 +01:00
parent a79b913f2d
commit 205d6f159d

View file

@ -9,19 +9,19 @@ server {
root /var/www/html; root /var/www/html;
autoindex off; autoindex off;
} }
rewrite ^/(.*) https://phantas.ma/$1 permanent; rewrite ^/(.*) https://njp.ma/$1 permanent;
} }
server { server {
server_tokens off; server_tokens off;
server_name phantas.ma; server_name njp.ma;
listen 443 ssl http2; listen 443 ssl http2;
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
ssl_trusted_certificate /etc/letsencrypt/live/phantas.ma/chain.pem; ssl_trusted_certificate /etc/letsencrypt/live/njp.ma/chain.pem;
ssl_certificate /etc/letsencrypt/live/phantas.ma/fullchain.pem; ssl_certificate /etc/letsencrypt/live/njp.ma/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/phantas.ma/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/njp.ma/privkey.pem;
#include /etc/letsencrypt/nginx.conf; #include /etc/letsencrypt/nginx.conf;
location /favicon.ico { location /favicon.ico {