v0.42.2_fix2
This commit is contained in:
1 parent
15c7f9ff9e
commit
25148f26eb
14 files changed
+407
-54
No files matched your search
@@ -108,3 +108,7 @@ curl -Ik https://portal.example.test/console/cgi-bin/config.txt
|
||||
- **Browser downloads a script:** verify the active Web Service and extension. RustProxy refuses to send known executable script extensions as static files when no matching handler is configured.
|
||||
|
||||
The new protocol paths are covered by source-level tests using a mock FastCGI responder. Before production use, run `./dev.sh check` and `./dev.sh test` with the project toolchain and exercise real PHP-FPM and fcgiwrap instances; mock responders cannot prove OS-level script execution.
|
||||
|
||||
### `.htaccess` front-controller suffixes
|
||||
|
||||
When `.htaccess` compatibility is enabled, `AcceptPathInfo On` allows an eligible FastCGI script to receive a rewritten `script.php/extra/` URL even if **PATH_INFO** is disabled at Web Service level. `AcceptPathInfo Off` overrides the Web Service toggle and denies suffix routing; `AcceptPathInfo Default` restores the Web Service setting. `SCRIPT_FILENAME` is always the existing script file under the Web Service document root. `PATH_INFO` is the path after that script, including the trailing slash, and `REQUEST_URI` remains the original requested URL. The FastCGI endpoint is still configured in the Web Service; `.htaccess` cannot select a socket. Explicit index lists remain unchanged; the default static index list also tries `index.php` last on PHP-FPM services handling `.php`. Re-apply the Web Service when the `.htaccess` file changes.
|
||||
Reference in new issue
Block a user