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,16 @@
|
||||
server {
|
||||
listen 192.4.1.6:80;
|
||||
|
||||
server_name mail.mydomen.ru;
|
||||
if ($http_host !~ "^mail.mydomen.ru$"){
|
||||
rewrite ^(.*)$ http://mail.mydomen.ru$1 redirect;
|
||||
}
|
||||
root /home/wwwmails/mail-mydomen;
|
||||
|
||||
error_log /var/log/nginx/err-mail_mydomen_ru.log;
|
||||
access_log /var/log/nginx/access-mail_mydomen_ru.log;
|
||||
|
||||
include /etc/nginx/templates/content.conf;
|
||||
include /etc/nginx/templates/letsencrypt.conf;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
server {
|
||||
listen 194.4.1.6:443 ssl proxy_protocol;
|
||||
server_name mydomen.ru www.mydomen.ru;
|
||||
set_real_ip_from 91.193.62.251;
|
||||
real_ip_header proxy_protocol;
|
||||
|
||||
include /etc/nginx/ssl/ssl_mydomen-ru.conf;
|
||||
|
||||
if ( $scheme = "http" ) {
|
||||
rewrite ^/(.*)$ https://$host/$1 permanent;
|
||||
}
|
||||
ssi on;
|
||||
|
||||
|
||||
server_name mydomen.ru;
|
||||
if ($http_host !~ "^mydomen.ru$"){
|
||||
rewrite ^(.*)$ http://mydomen.ru$1 redirect;
|
||||
}
|
||||
root /home/www/mydomen;
|
||||
|
||||
error_log /var/log/nginx/err-mydomen_ru.log;
|
||||
access_log /var/log/nginx/access-mydomen_ru.log;
|
||||
|
||||
include /etc/nginx/templates/content.conf;
|
||||
include /etc/nginx/templates/letsencrypt.conf;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
ssl_certificate /etc/letsencrypt/live/mydomen.ru/cert.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/mydomen.ru/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/mydomen.ru/fullchain.pem;
|
||||
|
||||
include /usr/lib/python3/dist-packages/certbot_nginx/options-ssl-nginx.conf;
|
||||
@@ -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