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 for one file, but not for others #247
Comments
For security reasons the drupal-nginx image returns 404, for all not whitelisted PHP files. You can see it in the template https://github.com/wodby/drupal-nginx/blob/master/templates/d7-vhost.conf.tpl#L228-L230. If you like to see the phpinfo, you can always log in into your Drupal installation as an admin and open |
Thanks @szeidler While I have you on the line, I've not yet been able to get my own Drupal code working. I could see php info via 'php -i' in that container, but setting the error log location etc. in settings.php hasn't enabled me to get full 500 error text. I am getting some log entries that show the occurance of the 500 error, but not the actual error message itself.
I may be having trouble because I'm not used to nginx administration. Do you have a "tip jar" I can contribute too? Thanks for the work on this excellent project! |
When you set |
Don't you see errors in stdout after changing the |
I added |
AFAIK, Drupal (at least Drupal 7) uses its own error handlers and have two error log destinations: dblog and syslog. There's no syslog daemon in php container because, you know, containers, we have one process per container. You can check it by commenting the following lines in set_error_handler('_drupal_error_handler');
set_exception_handler('_drupal_exception_handler'); Solutions:
|
Ok, turns out we had a problem here after all, |
Fixed in 5.0.4 |
phpinfo.php is giving me a 404 result, where another file is accessed without a problem.
ls -l test.html phpinfo.php
-rw-r--r-- 1 christiannally wheel 18 27 Feb 14:39 phpinfo.php
-rw-r--r-- 1 christiannally wheel 26 27 Feb 14:40 test.html
I can edit test.html and the changes work right away. Accessing phpinfo.php returns a 404.
Codebase
mounted codebase
Host OS
macOS Sierra
Docker info output
Docker compose file
Logs output
The text was updated successfully, but these errors were encountered: