From d360a45e912c3d3790cea568099abfa45709e401 Mon Sep 17 00:00:00 2001 From: husanjon Date: Mon, 6 Apr 2026 17:09:00 +0500 Subject: [PATCH] Fix nginx: serve /storage/ directly from storage/app/public with alias Co-Authored-By: Claude Sonnet 4.6 --- _docker/nginx/conf.d/nginx.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_docker/nginx/conf.d/nginx.conf b/_docker/nginx/conf.d/nginx.conf index 5b30e96..100827e 100755 --- a/_docker/nginx/conf.d/nginx.conf +++ b/_docker/nginx/conf.d/nginx.conf @@ -4,7 +4,14 @@ server { error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; client_max_body_size 1024M; - + + disable_symlinks off; + + location /storage/ { + alias /var/www/storage/app/public/; + try_files $uri $uri/ =404; + } + location / { try_files $uri /index.php?$query_string; }