Title: Message

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://server12

 

both should be working.

 

HTH,

Rajesh

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]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:[EMAIL PROTECTED]
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.?

From documentation the full specs for name based Virtual-Hosting is

########

NameVirtualHost 144.25.187.172

 

<VirtualHost 144.25.187.172>

    DocumentRoot /usr/local/apache/htdocs1

    ServerName hostname1

    ErrorLog logs/error_log

    CustomLog logs/access_log common

</VirtualHost>

########

HTH,

Rajesh

 

 


http://www.gridapp.com

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Boivin, Patrice J
Sent: Monday, July 21, 2003 2:14 PM
To: Multiple recipients of list ORACLE-L
Subject: iAS Apache name-based virtual hosting

Has anyone managed to make name-based virtual hosting work on Apache bundled into iAS for Win32?

 

We configured Apache here, but strangely the original hostname still works.

 

We see the same page whether we type in the virtual hostname or the actual host name.

 

I would have thought that with a <VirtualHost> tag, the actual host name would not point to the virtual host's page.

 

I must have forgotten to do something somewhere...

 

Patrice.

Reply via email to