Uname:Linux mail.sarafai.ru 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64

403WebShell
403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/nginx/sites-available/old_configs/php.fpm.protopop-avvakum.ru.backup_20180819
upstream php_www_protopop_avvakum_ru {
    server unix:/var/run/php-fpm.www_protopop_avvakum_ru.pid;
    #server 127.0.0.1:9000;
}

server {
    listen [::]:80;
    listen 80;

    # listen on both hosts
    server_name protopop-avvakum.ru www.protopop-avvakum.ru;

    include letsencrypt/certbot.conf;

    # 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://protopop-avvakum.ru$request_uri;

#    # Define default caching of 24h
#    expires 86400s;
#    add_header Pragma public;
#    add_header Cache-Control "max-age=86400, public, must-revalidate, proxy-revalidate";

    # Path for static files
    root /var/www/protopop-avvakum.ru/public;
    index index.php index.html;

    #location ~ ^/(status-php-fpm|ping)$ {
    #    access_log off;
    #    #allow 127.0.0.1;
    #    #allow 95.31.19.44;
    #    #deny all;
    #    include fastcgi_params;
    #    #fastcgi_pass 127.0.0.1:9000;
    #    fastcgi_pass unix:/var/run/php-fpm.www_protopop_avvakum_ru.pid;
    #}

    #include access_to_wp_login_admin.conf;

    # Do not allow access to files giving away your WordPress version
    location ~ /(\.|wp-config.php|readme.html|licence.txt) {
        return 404;
    }

    # Add trailing slash to */wp-admin requests.
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;

    location = /favicon.ico$ {
        log_not_found off;
        access_log off;
    }

    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }

    # Deny access to hidden files
    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }

    location ~* /(?:uploads|files)/.*\.php$ {
        deny all;
    }

    location / {
        #try_files $uri $uri/ =404;
        try_files $uri $uri/ /index.php?$args;
    }

    # get friendly url links working
    if (!-e $request_filename)
    {
        rewrite ^(.+)$ /index.php?q=$1 last;
    }

    location ~ /.*\.php$ {
    #location ~ \.php$ {
        try_files $uri =404;

        #if ( -f $request_filename ) {
        #fastcgi_pass 127.0.0.1:9000;
        #fastcgi_pass unix:/var/run/php-fpm.www_protopop_avvakum_ru.pid;
        fastcgi_pass php_www_protopop_avvakum_ru;
        #}

        #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
        #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;

        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        /etc/nginx/fastcgi_params;
        #fastcgi_intercept_errors on;
        fastcgi_ignore_client_abort off;
        fastcgi_connect_timeout 60;
        fastcgi_send_timeout 180;
        fastcgi_read_timeout 180;
        fastcgi_buffer_size 128k;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_temp_file_write_size 256k;


        client_max_body_size 1g;
        client_body_buffer_size 128k;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        access_log off;
        log_not_found off;
        add_header Pragma public;
        add_header Cache-Control "max-age=31536000, public";
    }

    location ~ /\.ht {
        deny all;
    }

    location /.well-known/acme-challenge/ {
        alias /var/www/.well-known/acme-challenge/;
    }

    #Specify a charset
    charset utf-8;

    # Deliver 404 instead of 403 "Forbidden"
    error_page 403 = 404;

    # Custom 404 page
    error_page 404 /404.html;
    location = /404.html {
        root /var/www/protopop-avvakum.ru/errors;
        internal;
    }

    # Custom 50x pages
    #error_page 500 502 503 504 = /50x.html;
    #location = /50x.html {
    #    root /var/www/protopop-avvakum.ru/errors;
    #    internal;
    #}

    error_page 500 = /500.html;
    location = /500.html {
        root /var/www/protopop-avvakum.ru/errors;
        internal;
    }
    error_page 502 = /502.html;
    location = /502.html {
        root /var/www/protopop-avvakum.ru/errors;
        internal;
    }
    error_page 503 = /503.html;
    location = /503.html {
        root /var/www/protopop-avvakum.ru/errors;
        internal;
    }
    error_page 504 = /504.html;
    location = /504.html {
        root /var/www/protopop-avvakum.ru/errors;
        internal;
    }

    error_log /var/log/nginx/protopop-avvakum.ru_error.log;
    access_log /var/log/nginx/protopop-avvakum.ru_access.log;

    include gzip.conf;
    include h5bp/advanced.conf;

}

#server {
#    listen [::]:443 ssl http2;
#    listen 443 ssl http2;
#
#    # listen on the wrong host
#    server_name www.golosveri.ru;
#
#    include h5bp/advanced.conf;
#
#    include letsencrypt/certbot.conf;
#
#    # SSL
#    ssl_certificate /etc/letsencrypt/live/golosveri.ru/fullchain.pem;
#    ssl_certificate_key /etc/letsencrypt/live/golosveri.ru/privkey.pem;
#
#    # OCSP stapling
#    ssl_trusted_certificate /etc/letsencrypt/live/golosveri.ru/fullchain.pem;
#
#    # and redirect to the non-www host (declared below)
#    return 301 https://golosveri.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 golosveri.ru;
#
#    include letsencrypt/certbot.conf;
#
#    # Path for static files
#    root /var/www/golosveri.ru/public;
#    index index.php index.html;
#
#    # Fix bad links
#    location = /vote/disagree { return 301 https://golosveri.ru; }
#    location = /vote/agree { return 301 https://golosveri.ru; }
#
#    location / {
#        try_files $uri $uri/ /router.php?$args;
#    }
#
#    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;
#
#        client_max_body_size 1g;
#        client_body_buffer_size 128k;
#    }
#
#    location ~ /\.ht {
#        deny all;
#    }
#
#    # SSL
#    ssl_certificate /etc/letsencrypt/live/golosveri.ru/fullchain.pem;
#    ssl_certificate_key /etc/letsencrypt/live/golosveri.ru/privkey.pem;
#
#    # OCSP stapling
#    ssl_trusted_certificate /etc/letsencrypt/live/golosveri.ru/fullchain.pem;
#
#    location /.well-known/acme-challenge/ {
#        alias /var/www/.well-known/acme-challenge/;
#    }
#
#    location /robots.txt {
#        alias /var/www/golosveri.ru/public/robots.txt;
#    }
#
#    location /sitemap.xml {
#        alias /var/www/golosveri.ru/public/sitemap.xml;
#    }
#
#    location ~* ^.+\.(jpg|jpeg|gif|png|ico|mp3)$ {
#        expires max;
#    }
#
#    #Specify a charset
#    charset utf-8;
#
#    # Custom 404 page
#    error_page 404 = /404.html;
#    location = /404.html {
#        root /var/www/golosveri.ru/errors;
#        internal;
#    }
#
#    # Custom 50x pages
#    #error_page 500 502 503 504 = /50x.html;
#    #location = /50x.html {
#    #    root /var/www/golosveri.ru/errors;
#    #    internal;
#    #}
#
#    error_page 500 = /500.html;
#    location = /500.html {
#        root /var/www/golosveri.ru/errors;
#        internal;
#    }
#    error_page 502 = /502.html;
#    location = /502.html {
#        root /var/www/golosveri.ru/errors;
#        internal;
#    }
#    error_page 503 = /503.html;
#    location = /503.html {
#        root /var/www/golosveri.ru/errors;
#        internal;
#    }
#    error_page 504 = /504.html;
#    location = /504.html {
#        root /var/www/golosveri.ru/errors;
#        internal;
#    }
#
#    error_log /var/log/nginx-h2/golosveri.ru_error.log;
#    access_log /var/log/nginx-h2/golosveri.ru_access.log;
#
#
#    include gzip.conf;
#    include h5bp/advanced.conf;
#
#}

Youez - 2016 - github.com/yon3zu
LinuXploit