docs/nginx.conf

21 lines
374 B
Nginx Configuration File
Raw Normal View History

2024-06-24 17:28:30 +02:00
events {}
http {
server {
listen 80 default_server;
server_name _;
2024-06-24 17:35:28 +02:00
root /var/www/html/;
2024-06-24 17:28:30 +02:00
location / {
2024-06-24 17:30:48 +02:00
try_files $uri $uri/ $uri.html =404;
2024-06-24 17:28:30 +02:00
}
2024-06-24 17:30:48 +02:00
2024-06-24 17:28:30 +02:00
location /img {
2024-06-24 17:30:48 +02:00
include /etc/nginx/mime.types;
2024-06-24 17:28:30 +02:00
alias /var/www/html/img;
}
location = /favicon.ico { access_log off; log_not_found off; }
}
}