Apache proxy to nginx is not working
I have setup apache to proxy to nginx. but its not working.
<virtualhost 74.207.234.113:80="">ServerAdmin admin@teampdn.com
ServerName develop.teampdn.com
ProxyPass / http://localhost:8686/
ProxyPassReverse / http://localhost:8686/
# Uncomment the line below if your site uses SSL.
#SSLProxyEngine On</virtualhost>
my nginx is running on 8686.
But develop.teampdn.com takes me to my default apache page, but develop.teampdn.com:8686 is taking me to the correct location.
Definitely I am doing something wrong, please help me finding it.
Thanks
3 Replies
This is a unusual config; nginx–>Apache backend is much more common.
I haven't worked with nginx before. This is my first time.
I am following this guide:
I have used proxy , proxyhttp for proxy service, there is no modproxy installed, hence not loaded.
Can you please shed some light on "nginx–>Apache backend is much more common."
Thanks.
The guide instructs you how to install redmine with nginx, but the proxying section is just to facilitate easily bolting the app onto an existing Apache installation. Like if you were working on a LAMP server. If you're not using Apache already it's redundant, and nginx alone is a great front end server.