httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Mod-rewrite questions
Date Thu, 22 Jan 2004 22:00:12 GMT
On Thu, 22 Jan 2004, ORANSKY, JEFF (SBCSI) wrote:

> I am trying to disable http trace in the mod-rewrite module, the syntax that
> I want to stick on my httpd.conf file is:
>
> <VirtualHost <hostname> >
> RewriteEngine On
> RewriteCond %{REQUEST_METHOD} ^TRACE
> RewriteRule .* - [F]
> </VirtualHost>

Ugh.

> Syntax error on line 1075 of /var/opt/apache/conf/httpd.conf:
> Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module
> not
> included in the server configuration

You don't have mod_rewrite included in your server.  Depending on your
configuration, you may be able to simply uncomment the LoadModule (and
perhaps AddModule) line related to httpd.conf.  If you don't find those
lines, you'll probably need to recompile apache to include mod_rewrite.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message