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