fix
This commit is contained in:
parent
9482f0f294
commit
d4e589ffda
@ -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;
|
|
||||||
}
|
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user