Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: iAS Apache name-based virtual hosting

RE: iAS Apache name-based virtual hosting

From: RAJESH DAYAL <rajesh_at_ohitelecom.com>
Date: Tue, 22 Jul 2003 17:11:29 +0400
Message-Id: <25988.338879@fatcity.com>


This is a multi-part message in MIME format.

------=_NextPart_000_01BD_01C35074.4ABB1970 Content-Type: text/plain;

        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I think with name based virtual hosting you have to have a different virtual server name and diff IP Address (In port based virtual hosting you can have same host names but can listen on different ports). The server has to be able to listen on this new address (probably this name/IP resolution can be done at DNS level).

Also the apache is supposed to listen on both the server names, so your old server-name will keep working.

In my case I used MS Cluster administrator to create another virtual IP address and corresponding virtual host name.

So suppose the original server was configured with name say server11 with IP address 176.80.0.60, and additional virtual server name server12 with IP 176.80.0.65 was configured. Then the newly created virtual hostname server12 will have following entry in httpd.conf :

#############
NameVirtualHost 176.80.0.65

<VirtualHost 176.80.0.65>

    DocumentRoot /usr/local/apache/htdocs1     ServerName server12
    ErrorLog logs/error_server12_log
    CustomLog logs/access_ server12_log common
</VirtualHost>

##############

you should be able to do http to both the servers i.e.

http://server11 <http://server11/>
http://server12 <http://server12/>

both should be working.

HTH,
Rajesh

-----Original Message-----
From: ml-errors_at_fatcity.com [mailto:ml-errors_at_fatcity.com]On Behalf Of Boivin, Patrice J
Sent: Tuesday, July 22, 2003 5:24 PM
To: Multiple recipients of list ORACLE-L Subject: RE: iAS Apache name-based virtual hosting

I have that in place, except that since we are only doing virtual hosting by name, I used an asterisk instead of an IP address in the tags.

i.e.
NameVirtualHost *

<VirtualHost *>

...
</VirtualHost>

Patrice.
-----Original Message-----
From: RAJESH DAYAL [mailto:rajesh_at_ohitelecom.com] Sent: Tuesday, July 22, 2003 2:59 AM
To: Multiple recipients of list ORACLE-L Subject: RE: iAS Apache name-based virtual hosting Hi,
Did you specify the documentroot in the new virtual-host definition.? Received on Tue Jul 22 2003 - 08:11:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US