Skip to content

Commit 9648c9a

Browse files
committed
feat: add commented router configuration to support both direct file access and router-based applications
1 parent 2acb080 commit 9648c9a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

etc/nginx/framework/default.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Default framework configuration
22
# Handles standard PHP applications
33

4+
# Standard configuration - direct file access
45
location / {
5-
try_files $uri $uri/ /index.php$is_args$args;
6+
try_files $uri $uri/ =404;
67
}
8+
9+
# Router-based configuration - uncomment to enable
10+
# With this configuration, all requests will be directed to index.php
11+
# if the requested file doesn't exist
12+
# location / {
13+
# try_files $uri $uri/ /index.php$is_args$args;
14+
# }

0 commit comments

Comments
 (0)