server { listen 80; server_name _; root /var/www/mng/public; index index.php index.html; access_log /var/log/nginx/mng_access.log; error_log /var/log/nginx/mng_error.log; # 심볼릭 링크 허용 disable_symlinks off; # tenant-storage 정적 파일 서빙 location /tenant-storage/ { alias /var/www/mng/storage/app/tenants/; expires 7d; add_header Cache-Control "public, immutable"; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_read_timeout 300s; } }