Hi,
I realise this is a commonly asked question but I've run out of ideas on this one despite trawling the forums and trying various suggestions
I'm runnnig ISPconfig3 with 2 sites that use IP addresses in their config. All resolve, none point to the correct site and on httpd stop/start receive the NameVirtualHost has no virtualhosts error
httpd.conf
Code:
#NameVirtualHost *:80
NameVirtualHost 78.46.106.188:80
NameVirtualHost 78.46.106.188:443
Include /etc/httpd/conf/sites-enabled/
.vhosts file
Code:
<Directory /var/www/glebegallery.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<VirtualHost 78.46.106.188:80>
DocumentRoot /var/www/clients/client3/web19/web
ServerName glebegallery.com
<Directory /var/www/glebegallery.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
<Directory /var/www/clients/client3/web19/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
# ssi enabled
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Options +Includes
</Directory>
# cgi enabled
<Directory /var/www/clients/client3/web19/cgi-bin>
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /var/www/clients/client3/web19/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
# suexec enabled
SuexecUserGroup web19 client3
# suphp enabled
<Directory /var/www/clients/client3/web19/web>
suPHP_Engine on
# suPHP_UserGroup web19 client3
AddHandler x-httpd-suphp .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-suphp
</Directory>
</VirtualHost>
[root@ww1-02 sites-enabled]# apachectl -S
[Fri Sep 10 23:06:37 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
VirtualHost configuration:
78.46.106.188:80 is a NameVirtualHost
default server gacycles.co.uk (/etc/httpd/conf/sites-enabled/gacycles.co.uk.vhost:7)
port 80 namevhost gacycles.co.uk (/etc/httpd/conf/sites-enabled/gacycles.co.uk.vhost:7)
port 80 namevhost glebegallery.com (/etc/httpd/conf/sites-enabled/glebegallery.com.vhost:7)
78.46.106.188:443 is a NameVirtualHost
default server gacycles.co.uk (/etc/httpd/conf/sites-enabled/gacycles.co.uk.vhost:75)
port 443 namevhost gacycles.co.uk (/etc/httpd/conf/sites-enabled/gacycles.co.uk.vhost:75)
wildcard NameVirtualHosts and _default_ servers:
_default_:443 ww1-02.osit.com (/etc/httpd/conf.d/ssl.conf:81)
*:8080 is a NameVirtualHost
default server ww1-02.osit.com (/etc/httpd/conf/sites-enabled/000-ispconfig.vhost:10)
port 8080 namevhost ww1-02.osit.com (/etc/httpd/conf/sites-enabled/000-ispconfig.vhost:10)
Syntax OK
I've also tried adding a default site with wildcard instead of IP address to stop the error (which it does) but it does not stop the the other sites from not picking up their correct Docuement Root locations
Thanks
Paul
Recent comments
1 day 1 hour ago
1 day 1 hour ago
1 day 6 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 19 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 8 hours ago