This commit is contained in:
bakatrouble 2021-04-16 01:16:54 +03:00
parent 9482f0f294
commit d4e589ffda
2 changed files with 3 additions and 12 deletions

View File

@ -1,23 +1,13 @@
server { server {
server_name ~^drop\.bakatrouble\.(pw|me)$; server_name ~^drop\.bakatrouble\.me$;
root /srv/apps/drop/files; root /srv/apps/drop/files;
include /srv/apps/drop/configs/nginx_include.conf; include /srv/apps/drop/configs/nginx_include.conf;
} }
server { server {
server_name ~^(?<dir>.*)\.drop\.bakatrouble\.(pw|me)$; server_name ~^(?<dir>.*)\.drop\.bakatrouble\.me$;
root /srv/apps/drop/subdomain_files/$dir; root /srv/apps/drop/subdomain_files/$dir;
include /srv/apps/drop/configs/nginx_include.conf; 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;
} }

View File

@ -1,3 +1,4 @@
listen 8080;
access_log /srv/apps/drop/logs/access.log; access_log /srv/apps/drop/logs/access.log;
error_log /srv/apps/drop/logs/error.log; error_log /srv/apps/drop/logs/error.log;