nephish
04-08-2007, 06:51 AM
hello,
when i start apache, i am getting an error, a warning.
NameVirtualHost *:0 has no VirtualHosts
i am using one ip address to serve a few web pages and most of the files in my /etc/apache2/sites-enabled directory look like the one below.
<VirtualHost *>
SetEnv RAILS_ENV production
ServerName www.mysite.com
DocumentRoot /var/www/mysite/public
<Directory /var/www/pivotrac/public/>
Options ExecCGI FollowSymLinks
AddHandler fcgid-script .fcgi
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]
AllowOverride None
</Directory>
ServerSignature On
# ErrorDocument 500 /500.html
ErrorLog /var/log/apache2/mysite/error.log
CustomLog /var/log/apache2/mysite/access.log combined
LogLevel warn
</VirtualHost>
my server works ok, it does not seem to have a problem serving any of the sites.
my question is, should i do anything about this ?
thanks
when i start apache, i am getting an error, a warning.
NameVirtualHost *:0 has no VirtualHosts
i am using one ip address to serve a few web pages and most of the files in my /etc/apache2/sites-enabled directory look like the one below.
<VirtualHost *>
SetEnv RAILS_ENV production
ServerName www.mysite.com
DocumentRoot /var/www/mysite/public
<Directory /var/www/pivotrac/public/>
Options ExecCGI FollowSymLinks
AddHandler fcgid-script .fcgi
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]
AllowOverride None
</Directory>
ServerSignature On
# ErrorDocument 500 /500.html
ErrorLog /var/log/apache2/mysite/error.log
CustomLog /var/log/apache2/mysite/access.log combined
LogLevel warn
</VirtualHost>
my server works ok, it does not seem to have a problem serving any of the sites.
my question is, should i do anything about this ?
thanks