autoindex/configs/nginx.conf
2019-03-08 18:44:50 +03:00

23 lines
522 B
Nginx Configuration File

server {
server_name ~^drop\.bakatrouble\.(pw|me)$;
root /srv/apps/drop/files;
include /srv/apps/drop/configs/nginx_include.conf;
}
server {
server_name ~^(?<dir>.*)\.drop\.bakatrouble\.(pw|me)$;
root /srv/apps/drop/subdomain_files/$dir;
include /srv/apps/drop/configs/nginx_include.conf;
}
server {
if ($host ~ ^(.*\.)?drop\.bakatrouble\.(pw|me)$) {
return 301 https://$host$request_uri;
}
listen 80;
server_name ~^(.*\.)?drop\.bakatrouble\.(pw|me)$;
return 404;
}