How do i setup nginx with apache.

nkchokshi

New member
Joined
Jul 23, 2013
Messages
5
I have installed nginx from Custombuild and apache was already installed.

Now if i run apache only all sites are working oky. but if i stop apache and set Nginx port for 80 and start service it gives following message on all pages.

"apache is functioning normally"

I want to run both together. I have video streaming site. so i need to serve videos on NGINX and rest of the dynamic content on apache. is it possible?

or running all in nginx. our site is based in perl.

Please guide.
 
you can't run it together they use port 80 , you can change port for httpd to 81 for exmple, it's recommended to do that
 
But then of course you must use nginx as a proxy for any sites for which you need apache, or your visitors won't be able to see those sites from apache unless they know how to add the non-default port in their browser. For example:
Code:
http://www.example.com:81/index.php

It's probably possible to restrict apache to certain IP#s and nginx to other IP#s, and then of course you won't need separate ports, but supporting that is likely beyond the scope of these forums.

Jeff
 
Back
Top