ip6.biz/sample-nginx-config/ip6.biz.conf

37 lines
664 B
Plaintext

server {
include sites/ip6.biz/inc/ssl.conf;
server_name ip6.biz;
root /var/www/sites/ip6.biz;
index index.html;
location / {
if ($request_uri ~ ^/(.*)\.html) {
return 302 /$1;
}
try_files $uri $uri.html $uri/ =404;
}
}
server {
include sites/ip6.biz/inc/ssl.conf;
server_name www.ip6.biz;
return 301 https://ip6.biz;
}
server {
include sites/ip6.biz/inc/ssl.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 /var/www/sites/ip6.biz;
include inc/php.conf;
location / {
return 403;
}
add_header Access-Control-Allow-Origin "https://ip6.biz";
}