17 lines
334 B
Text
17 lines
334 B
Text
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server ipv6only=on;
|
||
|
|
||
|
root /var/www;
|
||
|
index index.html index.htm;
|
||
|
|
||
|
# Make site accessible from http://localhost/
|
||
|
server_name localhost;
|
||
|
autoindex on;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
}
|