Fix nginx index directive order for root directory
- Changed index order from 'index.html index.htm index.php' to 'index.html index.php index.htm' - This fixes 403 forbidden errors when accessing root directory - index.html should be checked first for root requests, then index.php - Resolves directory listing forbidden errors in container logs
This commit is contained in:
@@ -12,7 +12,7 @@ events {
|
||||
|
||||
http {
|
||||
include $!{nginx}/conf/mime.types;
|
||||
index index.html index.htm index.php;
|
||||
index index.html index.php index.htm;
|
||||
|
||||
default_type application/octet-stream;
|
||||
log_format main '$remote_addr - $remote_user [$time_local] $status '
|
||||
|
||||
Reference in New Issue
Block a user