move project Пн 30 ноя 2026 23:43:04 MSK
This commit is contained in:
1 parent
ab8e98ebb0
commit
b8ee1e9bd1
26 files changed
+2139
-3
No files matched your search
@@ -0,0 +1,11 @@
|
||||
error_page 404 /404.html;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
location ~* \.(css|js|jpg|jpeg|gif|png|ico|txt|woff|otf|eot|svg|ttf|html|xml|css|js)$ {
|
||||
expires 30d;
|
||||
error_page 404 @notfound;
|
||||
}
|
||||
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
location / {
|
||||
if ($http_host ~* "^www\.(.+)$"){
|
||||
rewrite ^(.*)$ http://%1/$1 redirect;
|
||||
}
|
||||
if (!-e $request_filename){
|
||||
rewrite ^(.*)$ /index.php;
|
||||
}
|
||||
index index.htm index.html index.php;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
location /.well-known {
|
||||
allow all;
|
||||
default_type "text/plain";
|
||||
alias /home/wwwmails/letsencrypt/.well-known;
|
||||
}
|
||||
|
||||
location = /.well-known {
|
||||
return 404;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ ^/(bin|SQL)/ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri $uri/ /index.php =404;
|
||||
fastcgi_pass localhost:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location ~ /.ht {
|
||||
deny all;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
client_max_body_size 10m;
|
||||
client_body_buffer_size 128k;
|
||||
proxy_connect_timeout 90;
|
||||
proxy_send_timeout 90;
|
||||
proxy_read_timeout 90;
|
||||
proxy_buffer_size 4k;
|
||||
proxy_buffers 4 32k;
|
||||
proxy_busy_buffers_size 64k;
|
||||
proxy_temp_file_write_size 64k;
|
||||
Reference in new issue
Block a user