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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
"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 |