22 lines
389 B
Plaintext
22 lines
389 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name _;
|
|
|
|
root /opt/LJ/www;
|
|
return 301 https://localhost$request_uri;
|
|
|
|
}
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
server_name _;
|
|
|
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
|
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
|
|
|
root /opt/LJ/www;
|
|
index index.html index.htm;
|
|
|
|
}
|