| Server IP : 185.143.233.238 / Your IP : 185.215.232.195 Web Server : nginx/1.22.1 System : Linux server2065 6.1.0-35-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.137-1 (2025-05-07) x86_64 User : www-data ( 33) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /etc/nginx/sites-available/ |
Upload File : |
server {
listen 80;
server_name bcandle.ir www.bcandle.ir;
root /var/www/bcandle;
index index.php index.html;
# -----------------------------
# WordPress
# -----------------------------
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~* /wp-content/uploads/.*\.php$ {
deny all;
access_log off;
log_not_found off;
}
# -----------------------------
# PHP
# -----------------------------
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# -----------------------------
# Static Files Cache
# -----------------------------
location ~* \.(css|js|jpg|jpeg|png|gif|ico|svg|webp|woff|woff2)$ {
expires 30d;
access_log off;
}
# -----------------------------
# Security
# -----------------------------
location ~ /\.ht {
deny all;
}
}