#1  
Old 26th June 2009, 05:19
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 11
Thanked 10 Times in 10 Posts
Default apache restart error

I've just installed a cross between the "perfect Lenny for ISPC 2" and "Lenny with virtual users and mysql". I couldn't install the password patch for Squirrelmail since their server got hacked...but this error should have anything to do with that.

I've installed Apache2 and then copied over my old config file with vhosts config...and I get this error upon an /etc/init.d/apache2 restart

Quote:
[warn] NameVirtualHost *:80 has no VirtualHosts
All the sites appear to be working...so I'm not sure where this is coming from, or how important it is...but how can I fix this?

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 26th June 2009, 11:04
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

You need atleast one virtualhost if you enable virtual hosting.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 26th June 2009, 13:17
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I have seven in there...

here's the line in the main apache config to include the vhosts file

Quote:
Include /etc/apache2/sites-enabled/Vhosts.conf
Here's the vhost.conf

Quote:
#
NameVirtualHost 192.168.1.5:80
<VirtualHost 192.168.1.5:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/
<Directory "/var/www/cgibin">
Options FollowSymLinks
AllowOverride All
Options +ExecCGI
</Directory>
</VirtualHost>
#
#
######################################
# Vhost: www.domain1.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/brian">
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "/var/www/brian/paging">
Options FollowSymLinks
AllowOverride All
Options +ExecCGI
</Directory>
ServerName www.domain1.com:80
ServerAdmin webmaster@domain1.com
DocumentRoot /var/www/brian
ServerAlias domain1.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
#
#
######################################
# Vhost: www.domain2.net:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/kelly">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain2.net:80
ServerAdmin webmaster@domain2.net
DocumentRoot /var/www/kelly
ServerAlias domain2.net
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
#
#
######################################
# Vhost: www.domain3.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/bk">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain3.com:80
ServerAdmin webmaster@domain3.com
DocumentRoot /var/www/bk
ServerAlias domain3.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
#
#
######################################
# Vhost: www.domain4.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/web6/web">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain4.com:80
ServerAdmin webmaster@domain4.com
DocumentRoot /var/www/web6/web
ServerAlias domain4.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
<IfModule mod_ssl.c>
<VirtualHost 192.168.1.5:443>
<Directory "/var/www/web6/web">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain4.com:443
ServerAdmin webmaster@domain4.com
DocumentRoot /var/www/web6/web
ServerAlias domain4.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
SSLEngine on
SSLCertificateFile /var/www/ssl/domain4.com.crt
SSLCertificateKeyFile /var/www/ssl/domain4.com.key
SSLCACertificateFile /var/www/ssl/gd_intermediate_bundle.crt
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
</VirtualHost>
</IfModule>
#
#

#
######################################
# Vhost: www.domain5.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/refs">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain5.com:80
ServerAdmin webmaster@domain5.com
DocumentRoot /var/www/refs
ServerAlias domain5.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
#



######################################
# Vhost: www.domain6.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/fashions">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain6.com:80
ServerAdmin webmaster@domain6.com
DocumentRoot /var/www/fashions
ServerAlias domain6.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
#



######################################
# Vhost: www.domain7.com:80
######################################
#
#
<VirtualHost 192.168.1.5:80>
<Directory "/var/www/umps">
Options FollowSymLinks
AllowOverride All
</Directory>
ServerName www.domain7.com:80
ServerAdmin webmaster@domain7.com
DocumentRoot /var/www/umps
ServerAlias domain7.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
</VirtualHost>
#
Reply With Quote
  #4  
Old 26th June 2009, 13:19
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

Thats correct but you have NONE that are using
Code:
NameVirtualHost *:80
in their definition.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 26th June 2009, 13:25
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 11
Thanked 10 Times in 10 Posts
Default

Which one is supposed to get that code? I tired the first one...

Quote:
NameVirtualHost *:80
<VirtualHost 192.168.1.5:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/
<Directory "/var/www/cgibin">
Options FollowSymLinks
AllowOverride All
Options +ExecCGI
</Directory>
</VirtualHost>
but I got a bunch of errors restarting apache that I had overlapping tags.

Thanks.

Brian
Reply With Quote
  #6  
Old 26th June 2009, 13:28
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

That could be because you are using multiple NameVirtualHost directives
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 26th June 2009, 21:00
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 11
Thanked 10 Times in 10 Posts
Default

there's only one...right at the top of the vhosts.conf file
Reply With Quote
  #8  
Old 26th June 2009, 21:10
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 11
Thanked 10 Times in 10 Posts
 
Default

I got it...

turns out, there was another NameVirtualHost line in ports.conf ...comment that out, and all is working.

Thanks.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CP210x USB to UART Bridge Linux VCP Drivers(SILICON Labs) perfectpol7 Kernel Questions 13 9th November 2010 07:30
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
dovecot problem sojic Server Operation 21 23rd March 2008 18:22
ADSL PCI Modems alexillsley Server Operation 5 9th May 2007 19:32
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07


All times are GMT +2. The time now is 16:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.