Subject: Re: apache 2 and mod_rewrite on NetBSD 3.99.7
To: Francisco Guerreiro <fguerreiro@cpcis.pt>
From: Francisco Valladolid Hdez. <ficovh@bsdguy.net>
List: current-users
Date: 08/18/2005 15:01:14
The dude is how can load the mod_rewrite module?.

LoadModule mod_rewrite lib/httpd/mod_rewrite.so

I understand  it but, mod_rewrite dond't existe in my lib/httpd directory.

Regards.

> Francisco Valladolid Hdez. wrote:
>
>>Hi folks.
>>
>>I have apache 2.0.54 under NetBSD 3.99.7. I need mod_rewrite (module for
>>apache), I know tha it is a default module, but i can't activate it.
>>
>>
>>I has edited Makefile for /usr/pkgsrc/www/apache2 and add "all" to
>>
>>DFLT_APACHE_MODULES=    all  option, it not compile this module.
>>
>>Some can help me.
>>
>>Regards.
>>
>>
>>
> if I'm not mistaken, you just have to put the "RewriteEngine On" on the
> context you need it, for example:
>
> <VirtualHost w.x.y.z>
>     ServerAdmin abc@def
>     DocumentRoot /usr/pkg/share/httpd/htdocs/
>     ServerName xx.yy.zz
>     RewriteEngine On
> </VirtualHost>
>
> did you try searching the apache2 manual for information about it? it
> explains it quite well :)
>
> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriteengine
>
> btw, on pkgsrc apache it is compiled in by default
>
> best regards,
> Francisco Guerreiro
>


-- 
---
    ficovh@bsdguy.net
    http://bsdguy.homeunix.org ; http://bsdguy.net