ssh-treasure-hunt/nginx-server.conf

24 lines
420 B
Plaintext
Raw Normal View History

2022-01-20 17:03:05 +00:00
server {
listen 80 default_server;
listen [::]:80 default_server;
2022-01-20 18:45:04 +00:00
root /var/www/html;
2022-01-20 17:03:05 +00:00
index index.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
2022-01-20 18:45:04 +00:00
add_header Content-Type 'text/html;';
2022-01-20 17:03:05 +00:00
autoindex on;
}
2022-01-20 18:45:04 +00:00
location ~ \.sh$ {
2022-01-20 17:03:05 +00:00
proxy_pass http://127.0.0.1:5000;
}
}