From 3be573b6d1501daef3a4bdd19e5b2a470122b85b Mon Sep 17 00:00:00 2001 From: mcoder Date: Tue, 14 Apr 2026 17:14:07 +0330 Subject: [PATCH] Add --- docker/nginx/default.conf | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index ed7e787..c2e24aa 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -1,22 +1,16 @@ -# تنظیمات سایت قربانی (Laravel) server { listen 80; - server_name victim.lab; + server_name webapp.kr-rezvan.ir; root /var/www/html/public; index index.php; - location / { try_files $uri $uri/ /index.php?$query_string; } + + 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; } -} - -# تنظیمات سایت مهاجم (Static/Hacker) -server { - listen 80; - server_name attacker.lab; - location / { - proxy_pass http://hacker-app:80; - } } \ No newline at end of file