LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-11-2006, 07:16 AM   #1
naveenrajn
LQ Newbie
 
Registered: Mar 2005
Location: India
Distribution: Redhat
Posts: 21

Rep: Reputation: 0
managing sites in apache[linux] and IIS with 1 public IP


hi,

can some one enlighten me on how to implement a setup where I have only 1 WAN IP[public IP] and I have sites hosted on both Apache[3 sites in linux machine] and IIS 6[4 sites which uses asp.net]. Earlier we had a setup where both servers[windows IIS and linux apache] had different IPs but now we have to give up one. How can I implement the same, I am sure its possible but how? Guys its kinda urgent, If some one knows any urls which could help me are also welcome.

regards,
Naveen
 
Old 02-11-2006, 07:43 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Probably the best solution would be to setup apache to be the main webserver, have it up front. Setup your domains and virtual domains that are hosted on it. Then what you'll do is setup virtual domains for the windows hosted sites but using mod_rewrite to redirect traffic to it's internal IP address, where IIS should be listening and setup as if it were setup normally.

An example would look something like this:

Code:
<VirtualHost *>
        ServerName yourdomain.com
        RewriteEngine     On
        ErrorLog /var/log/apache/yourdomain_error_log
        CustomLog /var/log/apache/yourdomain_access_log combined
        LogLevel warn
        RewriteRule       ^(.*)$        http://192.168.1.10/$1  [P,L]
        proxyrequests off
</VirtualHost>
I have the same type of setup except for multiple Linux machines running apache.
 
Old 02-11-2006, 09:46 AM   #3
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
If you have a spare computer left then you can put the linux and windows server behind it and configure keepalived on your spare machine.
 
Old 02-12-2006, 04:27 AM   #4
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
or you can take a look at Pound (http://www.apsis.ch/pound/index.html)
 
Old 02-13-2006, 11:27 PM   #5
naveenrajn
LQ Newbie
 
Registered: Mar 2005
Location: India
Distribution: Redhat
Posts: 21

Original Poster
Rep: Reputation: 0
thanks

thanks guys,

Let me try out implementing it and let u people know if any difficulties arises.Any way thanks again
 
Old 02-14-2006, 03:43 AM   #6
naveenrajn
LQ Newbie
 
Registered: Mar 2005
Location: India
Distribution: Redhat
Posts: 21

Original Poster
Rep: Reputation: 0
hi,

whats the basic diff: b/w ReverseProxy and URL Rewriting. which one is more efficient? My context will be to host a maximum of 15 sites in both platforms.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Apache from IIS happybattles Linux - Software 2 08-31-2005 10:32 PM
apache as a channel to IIS Zingaro2002 Linux - Networking 4 01-20-2005 03:01 AM
IIS + Apache* mosherben Linux - Networking 3 05-04-2004 11:31 AM
Windows and Linux sharing files for Apache and IIS marghorp Linux - Networking 6 03-17-2004 08:07 PM
IIS or Apache? mib Linux - Newbie 13 03-16-2003 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration