| 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 : |
# Choose between www and non-www, listen on the *wrong* one and redirect to
# the right one -- http://wiki.nginx.org/Pitfalls#Server_Name
#
server {
listen [::]:80;
listen 80;
# listen on both hosts
server_name staroobrad.xyz www.staroobrad.xyz;
# and redirect to the https host (declared below)
# avoiding http://www -> https://www -> https:// chain.
return 301 https://staroobrad.xyz$request_uri;
}
server {
listen [::]:443 ssl http2;
listen 443 ssl http2;
# listen on the wrong host
server_name www.staroobrad.xyz;
include h5bp/directive-only/ssl.conf;
ssl_certificate /etc/letsencrypt/live/staroobrad.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/staroobrad.xyz/privkey.pem;
# and redirect to the non-www host (declared below)
return 301 https://staroobrad.xyz$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.xyz;
ssl on;
include h5bp/directive-only/ssl.conf;
ssl_certificate /etc/letsencrypt/live/staroobrad.xyz/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/staroobrad.xyz/privkey.pem;
location /.well-known/acme-challenge/ {
alias /var/www/.well-known/acme-challenge/;
}
# Path for static files
root /var/www/staroobrad.xyz/public;
#Specify a charset
charset utf-8;
# Custom 404 page
error_page 404 /var/www/staroobrad.xyz/errors/404.html;
# Include the basic h5bp config set
include h5bp/basic.conf;
error_log /var/log/nginx/staroobrad.xyz_error.log;
access_log /var/log/nginx/staroobrad.xyz_access.log;
}