403Webshell
Server IP : 65.1.209.187  /  Your IP : 216.73.216.144
Web Server : nginx/1.24.0
System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64
User :  ( 1001)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/lib/letsencrypt/backups/1778252516.2809825/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/letsencrypt/backups/1778252516.2809825/www.drjunior.in_1
server {

    server_name drjunior.in www.drjunior.in;

    root /var/www/drjunior_wordpress/;
    index index.php index.html index.htm;

    # Optional: upload size (WordPress media uploads)
    client_max_body_size 2000M;

    # WordPress permalinks
    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    # PHP handling via Docker PHP-FPM (you mapped 127.0.0.1:9000 -> container:9000)
    location ~ \.php$ {
        
        include snippets/fastcgi-php.conf;
        # PHP 8.3 FPM socket:
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        # important:
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    # Cache static assets (optional)
    location ~* \.(css|js|jpg|jpeg|png|gif|ico|webp|svg|ttf|otf|eot|woff|woff2)$ {
        expires 30d;
        access_log off;
        try_files $uri =404;
    }

    # Deny access to hidden files (.env, .git, etc.) but allow Let's Encrypt
    location ~ /\.(?!well-known).* {
        deny all;
    }

    # Protect wp-config.php
    location = /wp-config.php {
        deny all;
    }

    # Optional: deny direct access to PHP in uploads (common hardening)
    location ~* ^/wp-content/uploads/.*\.php$ {
        deny all;
    }

    # Optional: security headers (safe baseline)
    add_header X-Frame-Options "SAMEORIGIN" always;
    add_header X-Content-Type-Options "nosniff" always;
    add_header Referrer-Policy "strict-origin-when-cross-origin" always;

    listen [::]:443 ssl; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/drjunior.in/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/drjunior.in/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}
server {
    if ($host = www.drjunior.in) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = drjunior.in) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    listen [::]:80;

    server_name drjunior.in www.drjunior.in;
    return 404; # managed by Certbot




}

Youez - 2016 - github.com/yon3zu
LinuXploit