two servers both on port 80

This is a discussion on two servers both on port 80 within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm trying to run Standard Apache 1.3.26 and Oracle's apache at the same time. The standard ...


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 09-29-2004
sjohns
 
Posts: n/a
Default two servers both on port 80

I'm trying to run Standard Apache 1.3.26 and Oracle's apache at the
same time. The standard apache should be on port 80, the Oracle
apache on another port...say 3333. I have a two dns entrys that point
to the same server. The first dns entry (lets call it DNS1.COM) I
want to be served by the Oracle Apache Server. The second dns entry
(DNS2.COM) should be served by the standard Apache server. I'm
trying to avoid having to use port #s in the URL for those request to
the Oracle apache server.


What should I do to my conf file on the Oracle Apache server to get it
to respond to request that come from DNS1.COM and no port #. Remember
it's listening on port 3333 but someone said I could do something with
the VirtualHost section of the conf file to make this work. So far, I
haven't had any luck.

Is this possible to do at all?

Thanks,
Scott

  #2 (permalink)  
Old 09-29-2004
Davide Bianchi
 
Posts: n/a
Default Re: two servers both on port 80

On 2004-09-29, sjohns <stj_spam@yahoo.com> wrote:
> What should I do to my conf file on the Oracle Apache server to get it
> to respond to request that come from DNS1.COM and no port #.


Use a VirtualHost in the 'normal' apache and mod_proxy to pass the
request to oracle's Apache on port 3333.

Davide

--
Windows NT encountered the following error: The operation completed
successfully.

-- From a Slashdot.org post
  #3 (permalink)  
Old 09-29-2004
Joachim Ring
 
Posts: n/a
Default Re: two servers both on port 80

"sjohns" <stj_spam@yahoo.com> wrote in message news:<1096483856.339583.227740@k17g2000odb.googleg roups.com>...
> I'm trying to run Standard Apache 1.3.26 and Oracle's apache at the
> same time. The standard apache should be on port 80, the Oracle
> apache on another port...say 3333. I have a two dns entrys that point
> to the same server. The first dns entry (lets call it DNS1.COM) I
> want to be served by the Oracle Apache Server. The second dns entry
> (DNS2.COM) should be served by the standard Apache server. I'm
> trying to avoid having to use port #s in the URL for those request to
> the Oracle apache server.
>
>
> What should I do to my conf file on the Oracle Apache server to get it
> to respond to request that come from DNS1.COM and no port #. Remember
> it's listening on port 3333 but someone said I could do something with
> the VirtualHost section of the conf file to make this work. So far, I
> haven't had any luck.


you need two name based virtual host on the port 80 instance like this

NameVirtualHost *:80
<VirtualHost *.80>
ServerName DNS2.COM
.... config for regular website ...
</VirtualHost>

<VirtualHost *.80>
ServerName DNS1.COM


</VirtualHost>

in the section for DNS1.COM you can either have a reverse proxy like
this (remeber to load mod_proxy):

ProxyPass / http://127.0.0.1:3333/
ProxyPassReverse / http://127.0.0.1:3333/

and set the ServerName for the oracle-apache to 127.0.0.1

or just generate a redirect to port 3333 like this:

RedirectMatch (.*) http://DNS1.COM:3333/$1

here the oracle-apache needs to have ServerName DNS1.COM.

the reverse proxy way will generate a bit more load and might have
some unexpected pitfalls. but the redirect will mean that everybody
sees your oracle apache on port 3333 in the address bar.

joachim
 
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 04:06 PM.


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