ssh-treasure-hunt/default

23 lines
381 B
Plaintext
Raw Normal View History

2022-01-20 17:03:05 +00:00
server {
listen 80 default_server;
listen [::]:80 default_server;
root /root/exercices/html;
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;
autoindex on;
}
location ~ /.sh$ {
proxy_pass http://127.0.0.1:5000;
}
}