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

why no "fastcgi.conf" file in /etc/nginx? #298

Closed
bi-kai opened this issue Jan 3, 2019 · 3 comments
Closed

why no "fastcgi.conf" file in /etc/nginx? #298

bi-kai opened this issue Jan 3, 2019 · 3 comments

Comments

@bi-kai
Copy link

bi-kai commented Jan 3, 2019

why there has no "fastcgi.conf" file in /etc/nginx?
I can find it in original nginx-1.15.8.tar.gz, but it's not in nginx docker image.

@pesochek
Copy link

pesochek commented Jan 9, 2019

I see it there:

docker run -it --rm nginx:alpine-perl ls /etc/nginx
Unable to find image 'nginx:alpine-perl' locally
alpine-perl: Pulling from library/nginx
cd784148e348: Already exists
9c0104c544ce: Pull complete
ad58d30ad30e: Pull complete
735f9c5a5420: Pull complete
Digest: sha256:bf2ee867141bb009994a6785f271cb2aeac213c6a792ea3161a7a5ce67dc61a0
Status: Downloaded newer image for nginx:alpine-perl
conf.d koi-win scgi_params
fastcgi.conf mime.types scgi_params.default
fastcgi.conf.default mime.types.default uwsgi_params
fastcgi_params modules uwsgi_params.default
fastcgi_params.default nginx.conf win-utf
koi-utf nginx.conf.default

@thresheek
Copy link
Collaborator

Use fastcgi_params if you're using debian-based image.

@davordragic
Copy link

When I compare fastcgi_params and fastcgi.conf in Alpine image, there are differences.
And when using fastcgi_params with nginx.conf from Pimcore 6.9 (https://pimcore.com/docs/pimcore/6.9/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/Nginx_Configuration.html) I does not work, because of missing
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

image

In the end, this is solution to make it work or use alpine image
image

I cannot figure out why in clean debian mashine, file is not installed
image

while on clean centos8 mashine, file comes by default
image

Is there any good explanaion?

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

4 participants