Apache and other webserver sharing, please help?

This is a discussion on Apache and other webserver sharing, please help? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi! I'm running Apache for all my web stuff, but I also want webmail for my mail server and ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-06-2004
Thomas Andersson
 
Posts: n/a
Default Apache and other webserver sharing, please help?

Hi!

I'm running Apache for all my web stuff, but I also want webmail for my mail
server and it uses it's own internal web server. Now I wonder if someone can
help me with how to set things up so they both can work together.
Right now the mail server webserver uses ports 32000 and 32001 for webmail
giving odd addresses like http://<adress>:32000/mail/ and i'd like to make
it just http://webmail.<domain>/ (Running my own DNS primary too).
Prob is I have to change the mail server port to 80/443 to do this, and
that's already tied up by Apache (service won't even start).
Is there any way by using Apache settings, tricks with the DNS server or
anything else to make this work or redirect the traffic transparently?

Both servers running on WinXP, web Apache and mail server Merak, using Bind
for DNS.

TIA
Thomas


  #2 (permalink)  
Old 06-06-2004
Thor Kottelin
 
Posts: n/a
Default Re: Apache and other webserver sharing, please help?



Thomas Andersson wrote:

> I'm running Apache for all my web stuff, but I also want webmail for my mail
> server and it uses it's own internal web server. Now I wonder if someone can
> help me with how to set things up so they both can work together.
> Right now the mail server webserver uses ports 32000 and 32001 for webmail
> giving odd addresses like http://<adress>:32000/mail/ and i'd like to make
> it just http://webmail.<domain>/ (Running my own DNS primary too).
> Prob is I have to change the mail server port to 80/443 to do this, and
> that's already tied up by Apache (service won't even start).
> Is there any way by using Apache settings, tricks with the DNS server or
> anything else to make this work or redirect the traffic transparently?


If you want to use port 80 for both, you must use different IP addresses.

Follow-ups set.

Thor

--
http://www.anta.net/ IRCnet #areena
  #3 (permalink)  
Old 06-07-2004
Kieran Simkin
 
Posts: n/a
Default Re: Apache and other webserver sharing, please help?

"Thomas Andersson" <steiner@tifozi.net> wrote in message
news:2ih7rfFmph6kU1@uni-berlin.de...
> Hi!
>
> I'm running Apache for all my web stuff, but I also want webmail for my

mail
> server and it uses it's own internal web server. Now I wonder if someone

can
> help me with how to set things up so they both can work together.
> Right now the mail server webserver uses ports 32000 and 32001 for webmail
> giving odd addresses like http://<adress>:32000/mail/ and i'd like to make
> it just http://webmail.<domain>/ (Running my own DNS primary too).
> Prob is I have to change the mail server port to 80/443 to do this, and
> that's already tied up by Apache (service won't even start).
> Is there any way by using Apache settings, tricks with the DNS server or
> anything else to make this work or redirect the traffic transparently?


You have correctly identified the problem that you cannot have two services
binding to the same IP address and port. You do have a number of solutions
available to you however. You could set up an http proxy that would forward
requests to each different port depending on the "Host" header - Squid will
probably allow you to do this, mod_proxy for apache may even do although
I've no experience using it myself. This solution is probably more hassle
than it's worth.

Another solution would be to assign a separate IP address for each web
server, this is a very viable solution if you're only serving requests to
your LAN or have the ability to allocate globally routable IP addresses
yourself. How to do this in windows I can't tell you I'm afraid although
it's definitely possible (try a google for "windows multihoming". If you
manage to get windows to believe your machine has two IP addresses, you can
bind apache to port 80 on one of them and your web mail to port 80 on the
other and set up bind for your domains to resolve different hostnames to
each IP address..

Another solution is to replace your webmail program with a CGI version that
ran inside Apache, although the limitations of your mail server setup may
prevent you from doing this (hint, if your mailserver supports imap access
you can probably install squirrelmail or similar- google for it).

Hope this helps.
>
> Both servers running on WinXP, web Apache and mail server Merak, using

Bind
> for DNS.
>
> TIA
> Thomas
>
>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:52 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0