Skip to content

Commit 59bd3d7

Browse files
authored
Merge pull request #186 from Hugow1/Hugow1-patch-1
Update laravel.md
2 parents 9c44c29 + 0de38fd commit 59bd3d7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/applications/laravel.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,15 @@ http {
186186
187187
charset utf-8;
188188
189-
$if(IS_LARAVEL) (
189+
$if(NIXPACKS_PHP_FALLBACK_PATH) (
190190
location / {
191-
try_files $uri $uri/ /index.php?$query_string;
191+
try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH}?$query_string;
192192
}
193-
) else ()
194-
195-
$if(NIXPACKS_PHP_FALLBACK_PATH) (
193+
) else (
196194
location / {
197-
try_files $uri $uri/ ${NIXPACKS_PHP_FALLBACK_PATH}?$query_string;
198-
}
199-
) else ()
195+
try_files $uri $uri/ /index.php?$query_string;
196+
}
197+
)
200198
201199
location = /favicon.ico { access_log off; log_not_found off; }
202200
location = /robots.txt { access_log off; log_not_found off; }

0 commit comments

Comments
 (0)