httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Name and IP based Virtual Hosts on same machine
Date Mon, 17 May 2004 18:08:36 GMT

On Mon, 17 May 2004, John Nichel wrote:
>    I currently admin a web server which serves up 11 domains, all name
> based virtual hosts, where only one of the domain's needs ssl.  However,
> we are about to setup a second domain which will need ssl.  Is it
> possible to run name based and ip based virtual hosts under the same
> instance of Apache (1.3.29)?

Yes.  Simply limit the NameVirtualHost directive to only the IP address
that has the name-based vhosts.  For example:

NameVirtualHost 123.456.789.123:80

<VirtualHost 123.456.789.123:80>
ServerName host1
DocumentRoot ...

<VirtualHost 123.456.789.123:80>
ServerName host2
DocumentRoot ...

<VirtualHost 333.333.333.333:443>
ServerName ssl-host

See also:


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message