| Server IP : 82.148.16.210 / Your IP : 216.73.216.19 Web Server : nginx/1.29.5 System : Linux mail.sarafai.ru 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64 User : root ( 0) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /etc/nginx/sites-available/old_configs/ |
Upload File : |
# HTTP
server {
listen [::]:80;
listen 80;
# listen on both hosts
server_name staroobrad.ru www.staroobrad.ru;
include letsencrypt/certbot.conf;
# Fix bad links
location = /spas.htm { return 301 https://staroobrad.ru; }
location = /news.htm { return 301 https://staroobrad.ru; }
location = /edinoverie.htm { return 301 https://staroobrad.ru; }
location = /per.htm { return 301 https://staroobrad.ru; }
location = /vvod.htm { return 301 https://staroobrad.ru; }
location = /slav-gruz.htm { return 301 https://staroobrad.ru; }
location = /belokrin.htm { return 301 https://staroobrad.ru; }
location = /biogr.htm { return 301 https://staroobrad.ru; }
location = /hram-russia.htm { return 301 https://staroobrad.ru; }
location = /biorg.htm { return 301 https://staroobrad.ru; }
location = /phil-hist.htm { return 301 https://staroobrad.ru; }
location = /per-rpsc-rdc.htm { return 301 https://staroobrad.ru; }
location = /sogl.htm { return 301 https://staroobrad.ru; }
location = /about.htm { return 301 https://staroobrad.ru; }
location = /monitor-apr-2.htm { return 301 https://staroobrad.ru; }
location = /bibl.htm { return 301 https://staroobrad.ru; }
location = /novizibkov.htm { return 301 https://staroobrad.ru; }
location = /guest.htm { return 301 https://staroobrad.ru; }
location = /emigration.htm { return 301 https://staroobrad.ru; }
location = /apollinary.htm { return 301 https://staroobrad.ru; }
location = /fed-sogl.htm { return 301 https://staroobrad.ru; }
location = /hram.htm { return 301 https://staroobrad.ru; }
location = /publ.htm { return 301 https://staroobrad.ru; }
location = /links.htm { return 301 https://staroobrad.ru; }
location = /pra.htm { return 301 https://staroobrad.ru; }
location = /arh.htm { return 301 https://staroobrad.ru; }
location = /older/monitor-may-12.htm { return 301 https://staroobrad.ru; }
# and redirect to the https host (declared below)
# avoiding http://www -> https://www -> https:// chain.
#return 301 https://$server_name$request_uri;
return 301 https://staroobrad.ru$request_uri;
# # Path for static files
# root /var/www/staroobrad.ru/public;
# index index.php index.html;
#
# location / {
# try_files $uri $uri/ =404;
# }
#
# location ~ \.php$ {
# #if ( -f $request_filename ) {
# #fastcgi_pass 127.0.0.1:9000;
# fastcgi_pass unix:/var/run/php-fpm.www.pid;
# #fastcgi_pass php;
# #}
#
# fastcgi_index index.php;
# fastcgi_intercept_errors on;
#
# #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_script_name;
#
# include fastcgi_params;
#
# # NIC HOSTING PARAMS
# client_max_body_size 1g;
# client_body_buffer_size 128k;
# # /NIC HOSTING PARAMS
# }
#
# # NIC HOSTING PARAMS
# # Static files location
# location ~* ^.+\.(jpg|jpeg|gif|swf|png|ico|mp3|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|dat|avi|ppt|txt|tar|mid|midi|wav|bmp|rtf|wmv|mpeg|mpg|mp4|m4a|spx|ogx|ogv|oga|webm|weba|ogg|tbz|js|7z)$ {
# root /var/www/staroobrad.ru/public;
# access_log /var/log/nginx-h2/staroobrad.ru_access.log combined;
# #error_page 404 = @fallback;
# log_not_found off;
# #accel_htaccess_switch on;
# }
# # /NIC HOSTING PARAMS
#
#
# location ~ /\.ht {
# deny all;
# }
#
# location /.well-known/acme-challenge/ {
# alias /var/www/.well-known/acme-challenge/;
# }
#
# location /robots.txt {
# alias /var/www/staroobrad.ru/public/robots.txt;
# }
#
# #Specify a charset
# charset utf-8;
#
# # Custom 404 page
# error_page 404 /404.html;
# location = /404.html {
# root /var/www/staroobrad.ru/errors;
# internal;
# }
#
# # Custom 50x pages
# #error_page 500 502 503 504 = /50x.html;
# #location = /50x.html {
# # root /var/www/staroobrad.ru/errors;
# # internal;
# #}
#
# error_page 500 = /500.html;
# location = /500.html {
# root /var/www/staroobrad.ru/errors;
# internal;
# }
# error_page 502 = /502.html;
# location = /502.html {
# root /var/www/staroobrad.ru/errors;
# internal;
# }
# error_page 503 = /503.html;
# location = /503.html {
# root /var/www/staroobrad.ru/errors;
# internal;
# }
# error_page 504 = /504.html;
# location = /504.html {
# root /var/www/staroobrad.ru/errors;
# internal;
# }
#
# error_log /var/log/nginx-h2/staroobrad.ru_error.log;
# access_log /var/log/nginx-h2/staroobrad.ru_access.log;
#
#
# include h5bp/advanced.conf;
#
#
# # NIC HOSTING PARAMS
# gzip on;
# gzip_http_version 1.0;
# gzip_vary on;
# gzip_comp_level 6;
# gzip_min_length 1100;
# gzip_buffers 16 8k;
# gzip_types text/plain application/xhtml+xml text/css application/css application/xml application/xml+rss text/javascript application/javascript application/x-javascript text/js;
# gzip_proxied any;
# gzip_disable "MSIE [1-6]\.";
# # /NIC HOSTING PARAMS
}
# HTTPS
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
# listen on the wrong host
server_name www.staroobrad.ru;
include letsencrypt/certbot.conf;
include h5bp/advanced.conf;
# SSL
ssl_certificate /etc/letsencrypt/live/staroobrad.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/staroobrad.ru/privkey.pem;
# OCSP stapling
ssl_trusted_certificate /etc/letsencrypt/live/staroobrad.ru/fullchain.pem;
# and redirect to the non-www host (declared below)
return 301 https://staroobrad.ru$request_uri;
}
server {
# listen [::]:443 ssl http2 accept_filter=dataready; # for FreeBSD
# listen 443 ssl http2 accept_filter=dataready; # for FreeBSD
#listen [::]:443 ssl http2 deferred; # for Linux
#listen 443 ssl http2 deferred; # for Linux
listen [::]:443 ssl http2;
listen 443 ssl http2;
# The host name to respond to
server_name staroobrad.ru;
# Path for static files
root /var/www/staroobrad.ru/public;
index index.php index.html;
# Fix bad links
location = /spas.htm { return 301 https://staroobrad.ru; }
location = /news.htm { return 301 https://staroobrad.ru; }
location = /edinoverie.htm { return 301 https://staroobrad.ru; }
location = /per.htm { return 301 https://staroobrad.ru; }
location = /vvod.htm { return 301 https://staroobrad.ru; }
location = /slav-gruz.htm { return 301 https://staroobrad.ru; }
location = /belokrin.htm { return 301 https://staroobrad.ru; }
location = /biogr.htm { return 301 https://staroobrad.ru; }
location = /hram-russia.htm { return 301 https://staroobrad.ru; }
location = /biorg.htm { return 301 https://staroobrad.ru; }
location = /phil-hist.htm { return 301 https://staroobrad.ru; }
location = /per-rpsc-rdc.htm { return 301 https://staroobrad.ru; }
location = /sogl.htm { return 301 https://staroobrad.ru; }
location = /about.htm { return 301 https://staroobrad.ru; }
location = /monitor-apr-2.htm { return 301 https://staroobrad.ru; }
location = /bibl.htm { return 301 https://staroobrad.ru; }
location = /novizibkov.htm { return 301 https://staroobrad.ru; }
location = /guest.htm { return 301 https://staroobrad.ru; }
location = /emigration.htm { return 301 https://staroobrad.ru; }
location = /apollinary.htm { return 301 https://staroobrad.ru; }
location = /fed-sogl.htm { return 301 https://staroobrad.ru; }
location = /hram.htm { return 301 https://staroobrad.ru; }
location = /publ.htm { return 301 https://staroobrad.ru; }
location = /links.htm { return 301 https://staroobrad.ru; }
location = /pra.htm { return 301 https://staroobrad.ru; }
location = /arh.htm { return 301 https://staroobrad.ru; }
location = /older/monitor-may-12.htm { return 301 https://staroobrad.ru; }
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
#if ( -f $request_filename ) {
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php-fpm.www.pid;
#fastcgi_pass php;
#}
fastcgi_index index.php;
fastcgi_intercept_errors on;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
# NIC HOSTING PARAMS
client_max_body_size 1g;
client_body_buffer_size 128k;
# /NIC HOSTING PARAMS
}
# NIC HOSTING PARAMS
# Static files location
location ~* ^.+\.(jpg|jpeg|gif|swf|png|ico|mp3|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|dat|avi|ppt|txt|tar|mid|midi|wav|bmp|rtf|wmv|mpeg|mpg|mp4|m4a|spx|ogx|ogv|oga|webm|weba|ogg|tbz|js|7z)$ {
root /var/www/staroobrad.ru/public;
access_log /var/log/nginx-h2/staroobrad.ru_access.log combined;
#error_page 404 = @fallback;
log_not_found off;
#accel_htaccess_switch on;
}
# /NIC HOSTING PARAMS
location ~ /\.ht {
deny all;
}
# SSL
ssl_certificate /etc/letsencrypt/live/staroobrad.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/staroobrad.ru/privkey.pem;
# OCSP stapling
ssl_trusted_certificate /etc/letsencrypt/live/staroobrad.ru/fullchain.pem;
location /.well-known/acme-challenge/ {
alias /var/www/.well-known/acme-challenge/;
}
location /robots.txt {
alias /var/www/staroobrad.ru/public/robots.txt;
}
#Specify a charset
charset utf-8;
# Custom 404 page
error_page 404 /404.html;
location = /404.html {
root /var/www/staroobrad.ru/errors;
internal;
}
# Custom 50x pages
#error_page 500 502 503 504 = /50x.html;
#location = /50x.html {
# root /var/www/staroobrad.ru/errors;
# internal;
#}
error_page 500 = /500.html;
location = /500.html {
root /var/www/staroobrad.ru/errors;
internal;
}
error_page 502 = /502.html;
location = /502.html {
root /var/www/staroobrad.ru/errors;
internal;
}
error_page 503 = /503.html;
location = /503.html {
root /var/www/staroobrad.ru/errors;
internal;
}
error_page 504 = /504.html;
location = /504.html {
root /var/www/staroobrad.ru/errors;
internal;
}
error_log /var/log/nginx-h2/staroobrad.ru_error.log;
access_log /var/log/nginx-h2/staroobrad.ru_access.log;
include h5bp/advanced.conf;
# NIC HOSTING PARAMS
gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain application/xhtml+xml text/css application/css application/xml application/xml+rss text/javascript application/javascript application/x-javascript text/js;
gzip_proxied any;
gzip_disable "MSIE [1-6]\.";
# /NIC HOSTING PARAMS
}