2019-03-08 15:35:21 +00:00
|
|
|
server {
|
|
|
|
server_name ~^drop\.bakatrouble\.(pw|me)$;
|
|
|
|
root /srv/apps/drop/files;
|
2018-06-14 17:00:36 +00:00
|
|
|
|
2019-03-08 15:44:50 +00:00
|
|
|
include /srv/apps/drop/configs/nginx_include.conf;
|
2017-04-29 03:17:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2019-03-08 15:35:21 +00:00
|
|
|
server_name ~^(?<dir>.*)\.drop\.bakatrouble\.(pw|me)$;
|
|
|
|
root /srv/apps/drop/subdomain_files/$dir;
|
2018-06-14 17:00:36 +00:00
|
|
|
|
2019-03-08 15:44:50 +00:00
|
|
|
include /srv/apps/drop/configs/nginx_include.conf;
|
2018-06-14 17:00:36 +00:00
|
|
|
}
|
|
|
|
|
2019-03-08 15:35:21 +00:00
|
|
|
server {
|
|
|
|
if ($host ~ ^(.*\.)?drop\.bakatrouble\.(pw|me)$) {
|
2018-06-14 17:00:36 +00:00
|
|
|
return 301 https://$host$request_uri;
|
2019-03-08 15:35:21 +00:00
|
|
|
}
|
2018-06-14 17:00:36 +00:00
|
|
|
|
2019-03-08 15:35:21 +00:00
|
|
|
listen 80;
|
|
|
|
server_name ~^(.*\.)?drop\.bakatrouble\.(pw|me)$;
|
|
|
|
return 404;
|
|
|
|
}
|