update sample config
This commit is contained in:
parent
6bddefe8b5
commit
2157871ec3
|
@ -1,8 +1,8 @@
|
||||||
server {
|
server {
|
||||||
include sites/ip6.biz/inc/ssl.conf;
|
include sites/ip6.biz/inc/ssl64.conf;
|
||||||
server_name ip6.biz;
|
server_name ip6.biz;
|
||||||
|
|
||||||
root /var/www/sites/ip6.biz;
|
root /opt/ip6.biz/src;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
@ -10,27 +10,36 @@ server {
|
||||||
return 302 /$1;
|
return 302 /$1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request_uri ~ ^/.*(\.(php|sh))) {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
||||||
try_files $uri $uri.html $uri/ =404;
|
try_files $uri $uri.html $uri/ =404;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
include sites/ip6.biz/inc/ssl.conf;
|
include sites/ip6.biz/inc/ssl64.conf;
|
||||||
server_name www.ip6.biz;
|
server_name www.ip6.biz;
|
||||||
return 301 https://ip6.biz;
|
return 301 $scheme://ip6.biz$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
include sites/ip6.biz/inc/ssl.conf;
|
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;
|
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;
|
root /opt/ip6.biz/src;
|
||||||
|
|
||||||
include inc/php.conf;
|
#access_log /var/log/nginx/access.log main;
|
||||||
|
|
||||||
|
location = / {
|
||||||
|
rewrite ^ $scheme://$host/plain.php permanent;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
|
||||||
add_header Access-Control-Allow-Origin "https://ip6.biz";
|
add_header Access-Control-Allow-Origin "https://ip6.biz";
|
||||||
|
include inc/php.conf;
|
||||||
}
|
}
|
Loading…
Reference in a new issue