Re: Debian Etch apache2 virtual host problem
- From: "Raffaele Morelli" <raffaele.morelli@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 12:21:56 +0200
# HTML documents, with indexing.
<Directory />
Options +Includes
</Directory>
this is extremely insecure if your machine is public see Order Deny, Allow
# CGI Handling
ScriptAlias /cgi-bin/ /var/www/workzone/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /var/www/workzone/logs/error.log
CustomLog /var/www/workzone/logs/access.log combined
</VirtualHost>
---------------------------------Code
End----------------------------------------
The command apache2ctl configtest tells me "[Fri Jan 01 11:55:20 1999]
[warn] NameVirtualHost *:0 has no VirtualHosts
Syntax OK"
And /etc/init.d/apache2 reload tells me "[Fri Jan 01 11:56:30 1999]
[warn] NameVirtualHost *:0 has no VirtualHosts"
How can I solve the problem please? Can any of you help me out?
I think you must define at least a directive for a virtual host "inside"
your document root.
Actually no pages can be served from your document root, there's not a web
site definition but a cgi script alias, and you only get that warning
instead of an error.
Blessings,
Rocky
hope this helps
raffaele
- References:
- Debian Etch apache2 virtual host problem
- From: rocky
- Debian Etch apache2 virtual host problem
- Prev by Date: Debian Etch apache2 virtual host problem
- Next by Date: Re: Debian Linux in Chroot
- Previous by thread: Debian Etch apache2 virtual host problem
- Next by thread: Re: Debian Etch apache2 virtual host problem
- Index(es):