asd
This commit is contained in:
parent
8328dc2b13
commit
5317d36c08
4 changed files with 40 additions and 17 deletions
38
nginx/sites-available-archive/i.zzls.xyz.conf
Normal file
38
nginx/sites-available-archive/i.zzls.xyz.conf
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
server {
|
||||||
|
|
||||||
|
access_log /var/log/nginx/i.access.log combined;
|
||||||
|
|
||||||
|
#root /mnt/blockstorage/i/files/;
|
||||||
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
|
||||||
|
server_name i.zzls.xyz;
|
||||||
|
include configs/general.conf;
|
||||||
|
include configs/securityheaders.conf;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
client_max_body_size 51M;
|
||||||
|
proxy_pass http://127.0.0.1:40007/;
|
||||||
|
include configs/proxyheaders.conf;
|
||||||
|
proxy_intercept_errors on;
|
||||||
|
error_page 404 = /error;
|
||||||
|
}
|
||||||
|
|
||||||
|
listen 443 ssl http2; # managed by Certbot
|
||||||
|
ssl_certificate /etc/letsencrypt/live/i.zzls.xyz/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/i.zzls.xyz/privkey.pem; # managed by Certbot
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
if ($host = i.zzls.xyz) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
|
server_name i.zzls.xyz;
|
||||||
|
listen 80;
|
||||||
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -16,7 +16,7 @@ server {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
root /mnt/blockstorage/wwwfiles;
|
root /mnt/blockstorage/files.zzls.xyz;
|
||||||
index index.html index.php /_h5ai/public/index.php;
|
index index.html index.php /_h5ai/public/index.php;
|
||||||
|
|
||||||
dav_ext_methods PROPFIND OPTIONS;
|
dav_ext_methods PROPFIND OPTIONS;
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
server {
|
server {
|
||||||
|
|
||||||
access_log /var/log/nginx/i.access.log combined;
|
access_log /var/log/nginx/i.access.log combined;
|
||||||
|
|
||||||
#root /mnt/blockstorage/i/files/;
|
|
||||||
index index.html index.htm index.nginx-debian.html;
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
|
||||||
server_name i.zzls.xyz;
|
server_name i.zzls.xyz;
|
||||||
|
@ -10,15 +7,7 @@ server {
|
||||||
include configs/securityheaders.conf;
|
include configs/securityheaders.conf;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
client_max_body_size 51M;
|
rewrite ^/(.*)$ https://ayaya.beauty/$1 redirect;
|
||||||
proxy_pass http://127.0.0.1:40007/;
|
|
||||||
include configs/proxyheaders.conf;
|
|
||||||
proxy_intercept_errors on;
|
|
||||||
error_page 404 = /error;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^/error* {
|
|
||||||
root /var/www/html;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#location /upload {
|
#location /upload {
|
||||||
|
@ -44,6 +33,4 @@ server {
|
||||||
server_name i.zzls.xyz;
|
server_name i.zzls.xyz;
|
||||||
listen 80;
|
listen 80;
|
||||||
return 404; # managed by Certbot
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
server {
|
server {
|
||||||
|
|
||||||
access_log /var/log/nginx/logs.access.log combined;
|
access_log /var/log/nginx/logs.access.log combined;
|
||||||
|
|
||||||
server_name logs.zzls.xyz;
|
server_name logs.zzls.xyz;
|
||||||
|
@ -26,7 +25,6 @@ server {
|
||||||
|
|
||||||
error_page 501 502 503 /50x.html;
|
error_page 501 502 503 /50x.html;
|
||||||
proxy_intercept_errors on;
|
proxy_intercept_errors on;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /50x.html {
|
location = /50x.html {
|
||||||
|
|
Loading…
Add table
Reference in a new issue