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
Create the route /.well-known/ in web.php Route::get('/.well-known/', function () { return view('welcome'); });
Start serversideup php apache docker container and mount laravel directory
Go to /.well-known/
Outcome
What did you expect?
Laravel welcome screen
What happened instead?
403 Forbidden php-1 | [Wed Feb 04 22:58:51.558942 2026] [authz_core:error] [pid 131:tid 196] [client xx:21475] AH01630: client denied by server configuration: /var/www/html/public/.well-known php-1 | - - [04/Feb/2026:22:58:51 +0000] localhost 192.168.65.1 "GET /.well-known/ HTTP/1.1" 403 239 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0"
Affected Docker Images
serversideup/php:8.2-fpm-apache-v4.3.0
Anything else?
I have an OIDC provider built in Laravel located at /.well-known/openid-configuration. When updating to v4.3.0, the new directives prevented access to that endpoint.
I got it to work once I created a .well-known folder. I think I had one in there for testing the route. Since I had that testing folder there, my end was resolving.
The related PR was merged so this can be closed I guess.
Edit: OK, the related change was not yet released. I can also see that any request is blocked if the APACHE_DOCUMENT_ROOT contains a directory with leading dot anywhere in its path.
Once more with feeling: it's there but only in v4.4.0 or newer.
$ docker run --rm -it --env=SHOW_WELCOME_MESSAGE=false serversideup/php:fpm-apache-v4.4.1 grep well-known /etc/apache2/conf-enabled/security.conf
ℹ️ NOTICE (generate-ssl): SSL mode is off, so we won't generate a self-signed SSL key pair.
# EXCEPT for the "/.well-known/" directory which is required by RFC 8615
<DirectoryMatch "/\.(?!well-known/)">
Activity
[-]Apache to denying requests to .well-known #631[/-][+]Apache to denying requests to .well-known[/+]jaydrogers commentedon Feb 5, 2026
Just curious, why are you trying to get the root of
/.well-known/to return the welcome page?I believe your goal is to access
/.well-known/openid-configuration, which seems to be working for me in my test.Here is a repo to produce this locally. View the README how to clone it down and run it:
https://github.com/jaydrogers/docker-php-649-apache-well-known
My results
noctiswhole commentedon Feb 5, 2026
I just gave it as an example of reproducing my issue. Change the paths to
/.well-known/openid-configurationand the issue persists.I cloned your repo and I'm getting the same issue.
jaydrogers commentedon Feb 5, 2026
Thanks for getting back quickly!
Well that's super weird that I cannot replicate it even through we're running the same version through Docker.
Things I checked:
Could you potentially clear your cache and try again? This command will clear all local docker cache, networks, etc:
noctiswhole commentedon Feb 6, 2026
I tried pruning with
./vendor/bin/spin pruneand I'm still getting the same error, regardless of browser or curl.My dev machine is macOS with Docker Desktop, yes. My build and deployment OS are Linux and it's occurring there too.
jaydrogers commentedon Feb 6, 2026
Thanks for confirming!
I'm dumbfounded why I'm not able to reproduce the issue since we have almost identical setups.
I totally believe the bug exists on your machine, but unfortunately I won't be able to submit a fix until I can replicate the issue.
I'll leave this open to see if others have any ideas why it can't be replicated.
I'm all ears in the meantime if anyone has and thoughts
noctiswhole commentedon Feb 6, 2026
If you want, we can give you access to a new VM with the issue reproduced, and you can do whatever you need on it.
jaydrogers commentedon Feb 6, 2026
I think I fixed it 😅
I got it to work once I created a
.well-knownfolder. I think I had one in there for testing the route. Since I had that testing folder there, my end was resolving.I noticed I was using
DirectoryMatchinstead ofLocationMatch, so I made a PR to make the change: https://github.com/serversideup/docker-php/pull/652/changesYou can test this by using this image:
Try that out and let me know if that worked for you!
noctiswhole commentedon Feb 6, 2026
Awesome, that fixed it!
jaydrogers commentedon Feb 6, 2026
Sweet! I'll get this merged in the next release and will keep you posted 👍
mbrodala commentedon Jun 22, 2026
The related PR was merged so this can be closed I guess.
Edit: OK, the related change was not yet released. I can also see that any request is blocked if theAPACHE_DOCUMENT_ROOTcontains a directory with leading dot anywhere in its path.Once more with feeling: it's there but only in v4.4.0 or newer.
mbrodala commentedon Jun 23, 2026
Hm, somehow I cannot see this fix after all:
🤔
mbrodala commentedon Jun 23, 2026
I guess this explains it: #645