| 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 : /var/lib/letsencrypt/backups/1654604013.0126312/ |
Upload File : |
upstream python_zhriza_ru {
server unix:/srv/projects/env1/run/gunicorn.sock fail_timeout=0;
}
server {
if ($host = www.zhriza.ru) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = zhriza.ru) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen [::]:80;
listen 80;
server_name zhriza.ru www.zhriza.ru;
#include letsencrypt/certbot.conf;
root /srv/projects/env1/src;
location /.well-known/acme-challenge {
root /srv/letsencrypt;
allow all;
}
location /static {
alias /srv/projects/env1/src/static;
autoindex off;
}
#location = /robots.txt {
# log_not_found off;
# access_log off;
# return 200 "Host: https://zhriza.ru\n";
#}
location = /favicon.ico$ {
log_not_found off;
access_log off;
alias /srv/projects/env1/src/static/favicons/favicon.ico;
}
location / {
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
# proxy_redirect off;
# proxy_pass http://python_zhriza_ru;
return 301 https://zhriza.ru$request_uri;
}
error_log /var/log/nginx/zhriza.ru_error.log;
access_log /var/log/nginx/zhriza.ru_access.log;
#include gzip.conf;
#include h5bp/advanced.conf;
#return 301 https://$server_name$request_uri;
#return 301 https://zhriza.ru$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name www.zhriza.ru;
include h5bp/advanced.conf;
# SSL
ssl_certificate /etc/letsencrypt/live/zhriza.ru/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/zhriza.ru/privkey.pem; # managed by Certbot
ssl_trusted_certificate /etc/letsencrypt/live/zhriza.ru/fullchain.pem;
return 301 https://zhriza.ru$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
server_name zhriza.ru;
charset utf-8;
root /srv/projects/env1/src;
# # Do not allow access to files giving away your WordPress version
# location ~ /(\.|wp-config.php|readme.html|licence.txt) {
# return 404;
# }
location /static {
alias /srv/projects/env1/src/static;
autoindex off;
}
#location = /robots.txt {
# log_not_found off;
# access_log off;
# return 200 "Host: https://zhriza.ru\n";
#}
location = /favicon.ico$ {
log_not_found off;
access_log off;
alias /srv/projects/env1/src/static/favicons/favicon.ico;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://python_zhriza_ru;
#return 301 https://zhriza.ru$request_uri;
}
# SSL
ssl_certificate /etc/letsencrypt/live/zhriza.ru/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/zhriza.ru/privkey.pem; # managed by Certbot
ssl_trusted_certificate /etc/letsencrypt/live/zhriza.ru/fullchain.pem;
error_log /var/log/nginx/zhriza.ru_error.log;
access_log /var/log/nginx/zhriza.ru_access.log;
include gzip.conf;
include h5bp/advanced.conf;
}