HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Nginx + Apache (http://www.howtoforge.com/forums/showthread.php?t=29613)

Lordie 18th December 2008 14:00

Nginx + Apache
 
Hi guys and gals.

I have a dedicated server which currently run the Nginx webserver. However, I want Apache installed as well, but without interfaring with sites already using Nginx. My ideal enirionment would be to be able to set which sites should use which webserver.

The reason I want this solution is that the guy I am sharing the server with uses Nginx on his projects, but mine requires the use of .htaccess (gives me a headache). And no, getting rid of Nginx is not an option at the moment.

My qustion is, what would be the best way to do?
It is also worth mentioning that I am no Linux guru at all, but I do manage to get around most of the time.

P.S. If this has been asked before, I apologize for making a duplicate post.

Thanks.

falko 19th December 2008 17:13

If your server has two or more public IP address, you can make Apache listen on one IP and nginx on the other.

Another option would be to run a reverse proxy (e.g. Squid, Varnish, or Apache) in front of your nginx and Apache web servers (which must then run on other ports, e.g. 8080 and 8081).

Lordie 19th December 2008 17:26

Quote:

Originally Posted by falko (Post 160681)
If your server has two or more public IP address, you can make Apache listen on one IP and nginx on the other.

Another option would be to run a reverse proxy (e.g. Squid, Varnish, or Apache) in front of your nginx and Apache web servers (which must then run on other ports, e.g. 8080 and 8081).

Thanks for the reply!
In fact, my server does have aditional public IPs (3 I think), so I think I will go with that.

Is there a how-to on how this is done? I do not want to mess anything up.

falko 20th December 2008 17:07

Take a look here:
http://httpd.apache.org/docs/2.0/mod...on.html#listen
http://wiki.codemongers.com/NginxHttpCoreModule#listen


All times are GMT +2. The time now is 23:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.