43 lines
761 B
Plaintext
43 lines
761 B
Plaintext
|
server {
|
||
|
listen [::]:80;
|
||
|
listen *:80;
|
||
|
|
||
|
server_name p7.planet-casio.com;
|
||
|
|
||
|
include common.conf;
|
||
|
|
||
|
access_log /var/log/nginx/p7_access.log;
|
||
|
error_log /var/log/nginx/p7_error.log;
|
||
|
|
||
|
location / {
|
||
|
return 301 https://$server_name$request_uri;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen [::]:443 ssl http2;
|
||
|
listen *:443 ssl http2;
|
||
|
|
||
|
server_name p7.planet-casio.com;
|
||
|
|
||
|
include common.conf;
|
||
|
include ssl.conf;
|
||
|
|
||
|
ssl_certificate /etc/dehydrated/certs/p7.planet-casio.com/fullchain.pem;
|
||
|
ssl_certificate_key /etc/dehydrated/certs/p7.planet-casio.com/privkey.pem;
|
||
|
|
||
|
access_log /var/log/nginx/p7_access.log;
|
||
|
error_log /var/log/nginx/p7_error.log;
|
||
|
|
||
|
root /home/p7/www;
|
||
|
|
||
|
location /pub {
|
||
|
alias /home/p7/pub;
|
||
|
autoindex on;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
index fr.html;
|
||
|
}
|
||
|
}
|