How to reproduce
- Create a Laravel app on an ApisCP.
- Add a route:
Route::get('/.well-known/test', fn () => 'ok'); - Make sure no
public/.well-known/folder exists. - Request it:
curl -i https://example.com/.well-known/test
What’s happening
HTTP 403, with the body ok.
What’s expected
HTTP 200, with the body ok.
Notes
- The global
<Files ".*"> Require all deniedinhttpd.confappears to treat.well-knownas a dot file when the folder doesn’t exist on disk. - A path with no route (for example
/.well-known/nothing) correctly returns 404. - OAuth clients such as Claude and ChatGPT must read
/.well-known/oauth-authorization-serverand/.well-known/oauth-protected-resource(RFC 8414 and RFC 9728), and stop on a 403. - Workaround: an empty
public/.well-known/folder.