Apache22 FreeBSD Install and Virtual Hosts not working

This is a discussion on Apache22 FreeBSD Install and Virtual Hosts not working within the Apache Web Server forums, part of the Web Server and Related Forums category; I am trying for a pretty basic install here but to no avail. FreeBSD 6.0 Apache22 (From Ports) Apache ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-09-2006
Bert
 
Posts: n/a
Default Apache22 FreeBSD Install and Virtual Hosts not working

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%%



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.


Any thoughts?

Thanks

Bert
  #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})/

  #3 (permalink)  
Old 07-01-2006
Andrew Kenna
 
Posts: n/a
Default Re: Apache22 FreeBSD Install and Virtual Hosts not working

The Include statement is to include a plain text configuration file... take
a look in the conf/extras directory and see if there are any files listed in
there that aren't mentioned in the conf/httpd.conf...

Andrew

"Bert" <bert@nospamremovethis.akitanet.co.uk> wrote in message
news:dq52621frhk7512ej9jhf94shdpn8rv7se@4ax.com...
> 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%%
>
>
>
> 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.
>
>
> Any thoughts?
>
> Thanks
>
> Bert



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0