-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong nginx user at running #124
Comments
@jffranck can you paste your entire Landofile? Curious if you're specifying an nginx version or making any other changes. |
Hi @reynoldsalec,
|
@jffranck is right: something were broken in the configuration of NGINX container or the Drupal recipe. I had a stable local Lando environment for one of my Drupal projects. I didn't touch this project (and even any Drupal project locally) for a couple of months: I guess the most recent Lando build for a Drupal I did in the beginning of summer or even earlier. Today I've done a rebuild of the project and got 403 error for JS/CSS assets. Lando configuration (Docker Desktop 4.35.1, macOS Sonoma 14.5):
I've tried the most recent Research I connected to a container via
After that I was able to access the CSS file (w/o 403 error) in a browser by next URL: |
Hi,
It seems that when using nginx in via config, the user of nginx server is "daemon" instead of "www-data".
As a consequency, when using the correct permissions on Drupal folders, all css and js files are returning a 403 error from nginx.
The only way to fix it that I found is to add this in services config:
Even adding a custom server.conf with config/config/server didn't work.
The text was updated successfully, but these errors were encountered: