Skip to content
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

404 Error when fetching asset files from /wp-content #46

Open
vivianedias opened this issue Feb 6, 2023 · 1 comment
Open

404 Error when fetching asset files from /wp-content #46

vivianedias opened this issue Feb 6, 2023 · 1 comment

Comments

@vivianedias
Copy link

Hey!

I've used your setup and it was working great.

Don't know why when I tried setting it up on other computers some assets weren't being server properly.

Any asset files inside plugins/themes folder isn't being loaded, the network tab shows a 404 error, seems like it never finds the file referenced. I checked in the wp container and all files are there.

This is what the wordpress.error.log file looks like:

2023/02/06 14:58:56 [error] 28#28: *2 directory index of "/var/www/html/" is forbidden, client: 172.19.0.1, server: hostname request: "GET / HTTP/2.0", host: "hostname:8443"

I think it's probably an issue with the nginx server not "finding" those files. Could anyone help me with that?

@vivianedias vivianedias changed the title 404 Error when fetching CSS or asset files from /wp-content 404 Error when fetching asset files from /wp-content Feb 6, 2023
@vivianedias
Copy link
Author

I figured whats the issue:

I was mapping the plugins and themes folder inside /var/www. I think that led nginx to that confusion, and not serve the files. For now I'm just using the /wordpress/wp-content folder to store those folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant