| 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 : |
upstream archeodoxia {
server unix:/srv/projects/env2/run/gunicorn.sock fail_timeout=0;
}
server {
listen [::]:80;
listen 80;
# listen on both hosts
server_name archeodoxia.ru www.archeodoxia.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://archeodoxia.ru$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
# listen on the wrong host
server_name www.archeodoxia.ru;
include h5bp/advanced.conf;
# SSL
ssl_certificate /etc/letsencrypt/live/archeodoxia.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/archeodoxia.ru/privkey.pem;
# OCSP stapling
ssl_trusted_certificate /etc/letsencrypt/live/archeodoxia.ru/fullchain.pem;
# and redirect to the non-www host (declared below)
return 301 https://archeodoxia.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 archeodoxia.ru;
root /srv/projects/env2/archeodoxia/;
location /static/ {
alias /srv/projects/env2/archeodoxia/static/;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://archeodoxia;
}
# SSL
ssl_certificate /etc/letsencrypt/live/archeodoxia.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/archeodoxia.ru/privkey.pem;
# OCSP stapling
ssl_trusted_certificate /etc/letsencrypt/live/archeodoxia.ru/fullchain.pem;
location /.well-known/acme-challenge/ {
alias /var/www/.well-known/acme-challenge/;
}
#Specify a charset
charset utf-8;
error_log /var/log/nginx-h2/archeodoxia.ru_error.log;
access_log /var/log/nginx-h2/archeodoxia.ru_access.log;
include h5bp/advanced.conf;
}