d2ray/nginx.in

15 lines
261 B
Plaintext
Raw Normal View History

2021-02-01 06:07:23 +00:00
server {
listen 80 default_server;
server_name {{ subdomain }}.{{ domain }};
if ($remote_addr = 127.0.0.1) {
root /config/www;
index index.html index.htm index.php;
}
if ($remote_addr != 127.0.0.1) {
return 301 https://$host$request_uri;
}
}