You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrate.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ This guide covers a basic migration for a typical PHP application.
23
23
## HTTP request filtering
24
24
25
25
When migrating from a stock Nginx or Apache package, check any request filtering that was done by the web server before PHP-FPM received the request.
26
-
FrankenPHP is built on Caddy, so valid HTTP methods and headers are passed through Caddy's normal routing unless your `Caddyfile` rejects them first.
26
+
FrankenPHP is built on Caddy, so valid HTTP methods and headers are passed through Caddy's normal routing unless your `Caddyfile`or another proxy rejects them first.
27
27
28
28
For example, some web servers reject `TRACE` requests by default.
29
29
If your application should keep that behavior, add an explicit matcher before `php_server`:
@@ -39,6 +39,7 @@ example.com {
39
39
```
40
40
41
41
Apply the same approach to any stricter method or header policy your previous front web server enforced.
42
+
This is also relevant for request header names: some front web servers or proxies reject or drop valid-but-uncommon HTTP field names before PHP-FPM sees them, while FrankenPHP may pass them to the PHP application.
0 commit comments