NameVirtualHost address is not supported

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 has no VirtualHosts

 

When I put multiple entries into httpd.conf similar to this:

 

#

<VirtualHost 208.109.171.169:80>

ServerName sitename-1.com

DocumentRoot "/www/html/ sitename-1"

ServerAdmin webmaster@ sitename-1.com

<Directory "/www/html/ sitename-1">

allow from all

Options +Indexes

</Directory>

</VirtualHost>

#

<VirtualHost 208.109.171.169:80>

ServerName sitename-2.com

DocumentRoot "/www/html/ sitename-2"

ServerAdmin webmaster@ sitename-2.com

<Directory "/www/html/ sitename-2">

allow from all

Options +Indexes

</Directory>

</VirtualHost>

#

 

There is nothing but defaults in the ssl.conf file.

 

I have a site running fine located in the root directory, but when I try to add other sites in subdirectories, that’s when the errors start and all sites go down. Would anyone please offer me a suggestion for enabling multiple sites for Apache 2.2?

 

Best regards,

 

Michael


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux