Apache proxy to nginx is not working

Hi,

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

Do you have mod_proxy installed and loaded?

This is a unusual config; nginx–>Apache backend is much more common.

Thanks for your reply.

I haven't worked with nginx before. This is my first time.

I am following this guide: ~~[http://library.linode.com/web-applications/project-management/redmine/ubuntu-10.04-lucid" target="_blank">](http://library.linode.com/web-applicati … 0.04-lucid">http://library.linode.com/web-applications/project-management/redmine/ubuntu-10.04-lucid]( to install redmine.

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.

Try using or Since Apache is a well-supported and powerful application server, it often sits at the backend. Nginx can proxy back and handle static.

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct