-
Notifications
You must be signed in to change notification settings - Fork 3k
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
PHP-FPM with suggested ReadMe setup doesn't work #1489
Comments
i have same error ! |
Hi all, i have same error! could anyone solve this? |
This issue looks like a duplicate of #1466. @msandovalN0N As mentioned in #1466 (comment) I have implemented a workaround in https://github.com/tkw1536/nginx-proxy-fpm-workaround. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The suggested setup for using a fastcgi back-end doesn't seem to work, it just returns blank pages.
Here is my docker-compose for the fastcgi backend:
This is what gets produced in my nginx default.conf by the nginx-proxy-gen container:
Here is what I see in my access log:
With everything above you just get blank pages back when you try and visit your or any page at /*.
Now, outside of the suggested setup I have tried adding the following custom location block to the vhost and adding to the default / location block for the vhost:
Added to the nginx_proxy_vhost/_location file:
Added to just the nginx_proxy_vhost/ file:
Those additions will produce the base PHP file but any CSS/JS/PNG/JPEG files will return nothing.
My goal is to have this setup for a PHP site: (Nginx Reverse proxy container) -> (php-fpm container) instead of (Nginx Reverse proxy container) -> (Apache container) because running the php-fpm container to server the PHP content while also producing the css/js/images is a lot more lightweight than nginx+Apache behind it and it's a lot faster.
Any help getting this working is appreciated.
The text was updated successfully, but these errors were encountered: