diff --git a/nginx.conf b/nginx.conf index abb04b3..1ae5cb4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,10 +1,10 @@ server { listen 80; - server_name apibashgah.loolegostar.com; + server_name _; # تغییر به خط تیره برای پذیرش تمام هدرهای هاست که ترافیک می‌فرستد - location /media/ { - alias /app/media/; + location / { + root /app/media/; # استفاده از root چون دیگر کلمه media در آدرس وجود ندارد expires 30d; - add_header Cache-Control "public, no-transform"; + autoindex on; } } \ No newline at end of file