activate apache mod_rewrite

Ray ray at stilltech.net
Mon Jul 13 01:03:18 UTC 2009


On July 12, 2009 05:58:07 pm Gregory T Helton wrote:
> On Sun, 12 Jul 2009 17:09:24 -0600
>
> Ray <ray at stilltech.net> wrote:
> > Hello,
> > I'm running FreeBSD  7.0-RELEASE-p3, amd64
> > I have never used mod rewrite before, but I am about to be hosting a
> > php website that does use it and I can't figure out how to turn it on.
> > The website was working properly under other hosting.
> >
> > The server has been working properly for over a year with other php
> > websites. I installed apache 2.2 along with php 5.2 from ports.
> >
> > google says that the following lines should appear in  httpd.conf
> >
> > LoadModule rewrite_module     libexec/apache/mod_rewrite.so
> > AddModule mod_rewrite.c
> >
> > first line does appear, slightly modified
> > LoadModule rewrite_module libexec/apache22/mod_rewrite.so
> >
> > when I try to add the second line, apache won't start.
> >
> > mod_rewrite.so is in the location specified.
> >
> > at the moment I'm guessing I am missing something in
> > httpd-vhosts.conf, but I haven't found a guide for this yet.
> >
> > Any suggestions, manual sections, links appreciated.
> > Ray
> > _______________________________________________
> > freebsd-questions at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
>
> Try with just the LoadModule line. This is the only line I have for
> mod_rewrite in my httpd.conf, and it is working properly.
>
> iirc, the "AddModule" linux is apache 1.x specific.
>

That makes sense, because all the websites that I could find were 4 to 6 years 
old.

> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"

Thanks for the response.
The loadmodule line is  already there. 
Is there anything in the httpd-vhosts.conf or anywhere else needed to activate 
rewrites?
thanks,
Ray
 



More information about the freebsd-questions mailing list