#1  
Old 18th December 2008, 15:00
Lordie Lordie is offline
Junior Member
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Post 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.
Reply With Quote
Sponsored Links
  #2  
Old 19th December 2008, 18:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

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).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th December 2008, 18:26
Lordie Lordie is offline
Junior Member
 
Join Date: Dec 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
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.
Reply With Quote
  #4  
Old 20th December 2008, 18:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
 
Default

Take a look here:
http://httpd.apache.org/docs/2.0/mod...on.html#listen
http://wiki.codemongers.com/NginxHttpCoreModule#listen
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
.htacces, apache, linux, nginx, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nginx + Apache on Ubuntu 8.04 AdamBoyle HOWTO-Related Questions 3 10th December 2008 23:54
Need help with Plesk, Apache, and Nginx domz Installation/Configuration 1 10th November 2008 13:03
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45


All times are GMT +2. The time now is 09:43.


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