Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Debian Etch apache2 virtual host problem

From: Andrew Sackville-West <andrew(at)farwestbilliards.com>
Date: Tue Jul 31 2007 - 12:09:06 EDT


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 *
> <VirtualHost *>
> # Basic setup
> ServerAdmin webmaster@workzone.com
> ServerName www.workzone.com
> DocumentRoot /var/www/workzone/htdocs
>
>
> # HTML documents, with indexing.
> <Directory />
> Options +Includes
> </Directory>
>
> # 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"

you have not specified any virtual hosts. something like:

<VirtualHost 192.168.2.3:80>

        ServerName blah.foo.com
        DocumentRoot /var/www/root/of/blah
        CustomLog /var/log/apache2/access.log combined
</VirtualHost>

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

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Tue Jul 31 12:10:23 2007
Do you need help?X

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 18:34:45 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library