18 lines
314 B
Text
18 lines
314 B
Text
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
|
||
|
server_name pixelated.example.com;
|
||
|
|
||
|
root /var/html/www;
|
||
|
index index.html;
|
||
|
|
||
|
location / {
|
||
|
if ($request_uri ~ ^/(.*)\.html) {
|
||
|
return 302 /$1;
|
||
|
}
|
||
|
try_files $uri $uri.html $uri/ =404;
|
||
|
}
|
||
|
|
||
|
}
|