server { listen 80; # شناسایی همزمان هر دو دامنه شبیه‌سازی شده server_name victim.lab attacker.lab localhost; root /var/www/html/public; index index.php index.html; # لاگ‌های مجزا برای تحلیل حملات access_log /var/log/nginx/sec-lab-access.log; error_log /var/log/nginx/sec-lab-error.log; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_pass php:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } }