- Updated try_files directive to serve index.html for root requests
- Changed from 'try_files / =404;' to 'try_files / /index.html =404;'
- This fixes 403 error when requesting bare domain URL
- Ensures proper fallback to index.html for root directory requests
- Changed alias from ${NIXPACKS_PHP_ROOT_DIR}/pancake/third_party to /app/pancake/third_party
- This fixes 404 errors for JS/CSS files with query strings
- NIXPACKS_PHP_ROOT_DIR variable not being set properly in containers
- Static assets now serve correctly from all containers
- Update pancake/third_party alias path to use correct NIXPACKS_PHP_ROOT_DIR
- Add proper pretty URL handling with @pancake_fallback location
- Fix SCRIPT_FILENAME to use $document_root instead of $realpath_root
- Enables Apache .htaccess equivalent functionality in nginx
This resolves issues where:
- Static assets in pancake/third_party were returning 404
- Pretty URLs without index.php were not working correctly
- Pancake application routing was broken