NavigationUser loginLinux NewsClick the above for your daily dose of Linux news. Food for ThoughtWindows Error: 002 - No error yet ... Spam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
Debian Etch apache2 virtual host problemHey, I'm runing Debian etch with apache2 on it. To make the server host # Basic setup # HTML documents, with indexing. Options +Includes # CGI Handling Options +ExecCGI # Logfiles ---------------------------------Code And /etc/init.d/apache2 reload tells me "[Fri Jan 01 11:56:30 1999] How can I solve the problem please? Can any of you help me out? Blessings, -- |
Debian Etch apache2 virtual host problem
this is extremely insecure if your machine is public see Order Deny, Allow
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.
hope this helps
raffaele
Debian Etch apache2 virtual host problem
On Tue, Jul 31, 2007 at 09:30:38AM -0000, rocky wrote:
> Hey,
>
> I'm runing Debian etch with apache2 on it. To make the server host
> many website I added the following code to the end of /etc/apache2/
> apache2.conf
> ----------------------Code
> begin--------------------------------------------------------------
> NameVirtualHost *
>
> # Basic setup
> ServerAdmin
> ServerName www.workzone.com
> DocumentRoot /var/www/workzone/htdocs
>
>
> # HTML documents, with indexing.
>
> Options +Includes
>
>
> # CGI Handling
> ScriptAlias /cgi-bin/ /var/www/workzone/cgi-bin/
>
> Options +ExecCGI
>
>
> # Logfiles
> ErrorLog /var/www/workzone/logs/error.log
> CustomLog /var/www/workzone/logs/access.log combined
>
> ---------------------------------Code
> End----------------------------------------
> The command apache2ctl configtest tells me "[Fri Jan 01 11:55:20 1999]
> [warn] NameVirtualHost *:0 has no VirtualHosts
> Syntax OK"
you have not specified any virtual hosts. something like:
ServerName blah.foo.com
DocumentRoot /var/www/root/of/blah
CustomLog /var/log/apache2/access.log combined
would be in order with a different block with unique ServerName for
each virtual host you want.
see http://httpd.apache.org/docs/1.3/vhosts/name-based.html
might be helpful
A
Debian Etch apache2 virtual host problem
Hey all,
Thank you very much for your help! I will go back and make the
changes.
Blessings,
Rocky
--