[GH-ISSUE #1543] How can i use fastcgi_pass #1172

Closed
opened 2026-02-26 06:36:03 +03:00 by kerem · 9 comments
Owner

Originally created by @hermann1514 on GitHub (Nov 1, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1543

Hi,
i would like to use npm as Proxy for my Nextcloud FPM.
But, i can i configure fastcgi_pass in the ProxyManager?

Has someone running Nextcloud:FPM with Proxymanager?

Regards
Hermann

Originally created by @hermann1514 on GitHub (Nov 1, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1543 Hi, i would like to use npm as Proxy for my Nextcloud FPM. But, i can i configure fastcgi_pass in the ProxyManager? Has someone running Nextcloud:FPM with Proxymanager? Regards Hermann
kerem closed this issue 2026-02-26 06:36:03 +03:00
Author
Owner

@chaptergy commented on GitHub (Nov 1, 2021):

Unfortunately npm is not intended to be used that way currently. But the proxy_pass used when you create a normal proxy host should work just fine.

<!-- gh-comment-id:956200787 --> @chaptergy commented on GitHub (Nov 1, 2021): Unfortunately npm is not intended to be used that way currently. But the `proxy_pass` used when you create a normal proxy host should work just fine.
Author
Owner

@hermann1514 commented on GitHub (Nov 1, 2021):

I think the fastcgi_Pass option has to become law here. Or does proxy_pass also work with FPM?

<!-- gh-comment-id:956267203 --> @hermann1514 commented on GitHub (Nov 1, 2021): I think the fastcgi_Pass option has to become law here. Or does proxy_pass also work with FPM?
Author
Owner

@hermann1514 commented on GitHub (Nov 1, 2021):

Is there a documentation how i can use advanced configuration?
Is it possible to add this Parameter to the conf File manualy?

<!-- gh-comment-id:956304352 --> @hermann1514 commented on GitHub (Nov 1, 2021): Is there a documentation how i can use advanced configuration? Is it possible to add this Parameter to the conf File manualy?
Author
Owner

@chaptergy commented on GitHub (Nov 1, 2021):

Is it? Isn't fastcgi_pass meant if you want to forward within the same host? I'm pretty sure proxy_pass should also work, just go ahead and try it.

Using the advanced config you can't remove things which are generated by npm, and the proxy_pass directive is always automatically included. You could manually edit the .conf file within the container manually found at /data/nginx/proxy_host/x.conf (x being the id of the proxy host, found when clicking on the three dots next to the proxy host inside the admin ui). There you could replace proxy_pass with fastcgi_pass and restart the container. But as soon as you edit the proxy host and save again, the config will be overwritten.

<!-- gh-comment-id:956333719 --> @chaptergy commented on GitHub (Nov 1, 2021): Is it? Isn't `fastcgi_pass` meant if you want to forward within the same host? I'm pretty sure `proxy_pass` should also work, just go ahead and try it. Using the advanced config you can't remove things which are generated by npm, and the `proxy_pass` directive is always automatically included. You _could_ manually edit the `.conf` file within the container manually found at `/data/nginx/proxy_host/x.conf` (`x` being the id of the proxy host, found when clicking on the three dots next to the proxy host inside the admin ui). There you could replace `proxy_pass` with `fastcgi_pass` and restart the container. But as soon as you edit the proxy host and save again, the config will be overwritten.
Author
Owner

@hermann1514 commented on GitHub (Nov 2, 2021):

Hmm ... proxy_pass doesn't work for me. Or I'm doing something wrong.

I have created a new proxy host with the IP from the NC FPM IMage. Unfortunately no access to it.

<!-- gh-comment-id:957488744 --> @hermann1514 commented on GitHub (Nov 2, 2021): Hmm ... proxy_pass doesn't work for me. Or I'm doing something wrong. I have created a new proxy host with the IP from the NC FPM IMage. Unfortunately no access to it.
Author
Owner

@chaptergy commented on GitHub (Nov 4, 2021):

Unfortunately then the only way is to manually edit the .conf files inside the container. You would have to wait for feature request https://github.com/jc21/nginx-proxy-manager/issues/65 otherwise, but I don't think it is going to happen in v2.

<!-- gh-comment-id:960711117 --> @chaptergy commented on GitHub (Nov 4, 2021): Unfortunately then the only way is to manually edit the `.conf` files inside the container. You would have to wait for feature request https://github.com/jc21/nginx-proxy-manager/issues/65 otherwise, but I don't think it is going to happen in v2.
Author
Owner

@geekyayush commented on GitHub (Aug 6, 2023):

Is there any way we could do this?

Sorry for commenting on this old issue, but I really need to use "fastcgi_pass" for my Wordpress site using php-fpm.
Normal Wordpress setup without php-fpm and with just PHP works fine. But when I use Wordpress php-fpm version, I get 502 error when visiting my domain.

I would really appreciate if someone could tell me a way to use "fastcgi_pass" instead of proxy_pass

<!-- gh-comment-id:1666774078 --> @geekyayush commented on GitHub (Aug 6, 2023): Is there any way we could do this? Sorry for commenting on this old issue, but I really need to use "fastcgi_pass" for my Wordpress site using php-fpm. Normal Wordpress setup without php-fpm and with just PHP works fine. But when I use Wordpress php-fpm version, I get 502 error when visiting my domain. I would really appreciate if someone could tell me a way to use "fastcgi_pass" instead of proxy_pass
Author
Owner

@Hadatko commented on GitHub (Aug 18, 2023):

Hello, just joining this thread. I would like to see this feature too. Advantage is that i don't need to download containers with apache version of solution but with fastcgi. Why to have many servers when it can be solved with one ;)

<!-- gh-comment-id:1683814042 --> @Hadatko commented on GitHub (Aug 18, 2023): Hello, just joining this thread. I would like to see this feature too. Advantage is that i don't need to download containers with apache version of solution but with fastcgi. Why to have many servers when it can be solved with one ;)
Author
Owner

@tr1p0p commented on GitHub (Jun 1, 2024):

Yeah... why a app made for "making nginx easy" doesn't... make thing easy for nginx ?

I really don't understand. Why it's SO HARD to just.. add some config to nginx config on domains ? Are we not free ?

<!-- gh-comment-id:2143427806 --> @tr1p0p commented on GitHub (Jun 1, 2024): Yeah... why a app made for "making nginx easy" doesn't... make thing easy for nginx ? I really don't understand. Why it's SO HARD to just.. add some config to nginx config on domains ? Are we not free ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1172
No description provided.