Michael,

On 4/18/14, 2:16 PM, Michael Peters wrote:
> I have a few sites I’d like to run on a single server with one IP on
> port 80 and 443. I’ve tried several configuration examples without
> success. I get error messages like this:
> 
>  
> 
> Starting httpd: [Fri Apr 18 09:23:32 2014] [error] VirtualHost
> _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost
> address is not supported, proceeding with undefined results
> 
> [Fri Apr 18 09:23:32 2014] [warn] NameVirtualHost 184.168.190.45:0
> <http://184.168.190.45:0> has no VirtualHosts
> 
>  
> 
> When I put multiple entries into httpd.conf similar to this:
> 
>  
> 
> #
> 
> <VirtualHost 208.109.171.169:80 <http://208.109.171.169:80>>
> 
> ServerName sitename-1.com <http://sitename-1.com>
> 
> DocumentRoot "/www/html/ sitename-1"
> 
> ServerAdmin webmaster@ sitename-1.com <http://sitename-1.com>
> 
> <Directory "/www/html/ sitename-1">
> 
> allow from all
> 
> Options +Indexes
> 
> </Directory>
> 
> </VirtualHost>
> 
> #
> 
> <VirtualHost 208.109.171.169:80 <http://208.109.171.169:80>>
> 
> ServerName sitename-2.com <http://sitename-2.com>
> 
> DocumentRoot "/www/html/ sitename-2"
> 
> ServerAdmin webmaster@ sitename-2.com <http://sitename-2.com>
> 
> <Directory "/www/html/ sitename-2">
> 
> allow from all
> 
> Options +Indexes
> 
> </Directory>
> 
> </VirtualHost>
> 
> #

What does your "NameVirtualHost" directive look like?

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to