Forum Moderators: phranque

Message Too Old, No Replies

Problem with httpd.conf

httpd.conf

         

pico

3:08 am on Jul 30, 2006 (gmt 0)

10+ Year Member



My Apache was working before I recomplied by Apache 1.3.37 to enable mod_rewrite with the following configure:-

./configure --prefix=/www --exec-prefix=/www --libexecdir=/www/libexec --enable-module=rewrite --enable-module=usertrack --enable-module=vhost-alias --enable-module=proxy --enable-module=vhost_alias --enable-module=so --enable-module=access --enable-module=dir

Yet, I am unable to restart the apache and get the following error when I test the new config.
/www/bin/apachectl configtest
Syntax error on line 287 of /www/conf/httpd.conf:
<Directory not allowed here

Could anyone kindly advise?

Lexur

5:16 am on Jul 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't know much about apache but I supose it could help if you add the 287 line in your post. Isn't?

pico

5:38 am on Jul 30, 2006 (gmt 0)

10+ Year Member



This is my line 278 onwards
<Directory "/wwwroot">
Options FollowSymLinks Includes ExecCGI MultiViews
AllowOverride All
</Directory>

jdMorgan

2:00 pm on Jul 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Directory not allowed here

From the Apache core documentation [httpd.apache.org]:

Context: server config, virtual host

This means that <directory> must appear in the main server configuration or within a <VirtualHost> section of httpd.conf. It may not appear within other containers, such as <Directory>, <Location>, <Limit>, etc.

Jim