View Single Post

  #2 (permalink)  
Old 05-13-2006
JohnR
 
Posts: n/a
Default Re: Apache22 FreeBSD Install and Virtual Hosts not working

On Tue, 09 May 2006 23:28:03 +0100, Bert wrote:

> I am trying for a pretty basic install here but to no avail.
>
> FreeBSD 6.0
> Apache22 (From Ports)
>
> Apache serves pages from the default folder but...
>
> I get the following error on a restart
>
> httpd: Syntax error on line 407 of /usr/local/apache2/conf/httpd.conf:
> Include directory '/usr/local/apache2/conf/Includes' not found
>
> There is no Includes directory
>
> If I make one I get
>
> httpd: bad user name %%WWWOWN%%
>

The user apache runs on is probably not defined. Take a look at the User
directive in httpd.conf
>
>
> My Virtual hosts do not serve either even though I have filed in the
> httpd-vhosts.conf and removed the # from the VirtualHosts line in the
> httpd.conf, I just get the default directory. but I'm not sure if it's
> because of one of the above.
>

What I did is put different conf-files in my Includes directory. These
contain:
<VirtualHost *:80>
ServerName fqdn.tld
ServerAdmin webmaster@fqdn.tld
DocumentRoot /usr/local/www/data/tqdn
ErrorLog /var/log/httpd/fqdn_error_log
CustomLog /var/log/httpd/fqdn_access_log combined
</VirtualHost>

Good luck


--
/(bb|[^b]{2})/