24 lines
629 B
Plaintext
Executable File
24 lines
629 B
Plaintext
Executable File
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
ssl_certificate /etc/ssl/certs/self-signed.crt;
|
|
ssl_certificate_key /etc/ssl/private/self-signed.key;
|
|
|
|
# Everything is a 404
|
|
location / {
|
|
autoindex on;
|
|
autoindex_exact_size off;
|
|
autoindex_format html;
|
|
autoindex_localtime on;
|
|
root /var/lib/nginx/html;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /var/lib/nginx/html;
|
|
}
|
|
}
|