45 lines
846 B
Plaintext
45 lines
846 B
Plaintext
server {
|
|
include sites/ip6.biz/inc/ssl64.conf;
|
|
server_name ip6.biz;
|
|
|
|
root /opt/ip6.biz/src;
|
|
index index.html;
|
|
|
|
location / {
|
|
if ($request_uri ~ ^/(.*)\.html) {
|
|
return 302 /$1;
|
|
}
|
|
|
|
if ($request_uri ~ ^/.*(\.(php|sh))) {
|
|
return 403;
|
|
}
|
|
|
|
try_files $uri $uri.html $uri/ =404;
|
|
}
|
|
}
|
|
|
|
server {
|
|
include sites/ip6.biz/inc/ssl64.conf;
|
|
server_name www.ip6.biz;
|
|
return 301 $scheme://ip6.biz$request_uri;
|
|
}
|
|
|
|
server {
|
|
include sites/ip6.biz/inc/ssl64.conf;
|
|
server_name v4.ip6.biz v6.ip6.biz any.ip6.biz f4.ip6.biz f6.ip6.biz v4.z4.ip6.biz v6.z4.ip6.biz v4.z6.ip6.biz v6.z6.ip6.biz;
|
|
|
|
root /opt/ip6.biz/src;
|
|
|
|
#access_log /var/log/nginx/access.log main;
|
|
|
|
location = / {
|
|
rewrite ^ $scheme://$host/plain.php permanent;
|
|
}
|
|
|
|
location / {
|
|
return 403;
|
|
}
|
|
|
|
add_header Access-Control-Allow-Origin "https://ip6.biz";
|
|
include inc/php.conf;
|
|
} |