46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name ~^(?<user>[^.]+)\.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad\.onion;
|
|
|
|
include common/usersites.conf;
|
|
|
|
subs_filter "gcdn.vern.cc" "gcdn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion";
|
|
location / {
|
|
#try_files @socket =404;
|
|
try_files $uri $uri/index.html $uri.html $uri/ @extensionless-php;
|
|
if (!-d /vm/$user/public_html) {
|
|
return 307 http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/;
|
|
}
|
|
autoindex on;
|
|
ssi on;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name ~^(?<user>[^.]+)\.vern\.cc;
|
|
include snippets/lets-encrypt.conf;
|
|
|
|
include common/usersites.conf;
|
|
|
|
location / {
|
|
#try_files @socket =404;
|
|
try_files $uri $uri/index.html $uri.html $uri/ @extensionless-php;
|
|
if (!-d /vm/$user/public_html) {
|
|
return 307 https://vern.cc/;
|
|
}
|
|
autoindex on;
|
|
ssi on;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
return 301 https://$host$request_uri;
|
|
server_name ~^(?<user>[^.]+)\.vern\.cc;
|
|
}
|