From owner-freebsd-questions@FreeBSD.ORG Mon Jul 13 01:55:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81AA3106566B for ; Mon, 13 Jul 2009 01:55:03 +0000 (UTC) (envelope-from gt@fallendusk.org) Received: from ysera.fallendusk.org (ysera.fallendusk.org [76.76.101.106]) by mx1.freebsd.org (Postfix) with ESMTP id 378DE8FC13 for ; Mon, 13 Jul 2009 01:55:03 +0000 (UTC) (envelope-from gt@fallendusk.org) Received: from localhost (localhost.gogax.com [127.0.0.1]) by ysera.fallendusk.org (Postfix) with ESMTP id D8A4028423 for ; Mon, 13 Jul 2009 01:55:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at fallendusk.org Received: from ysera.fallendusk.org ([127.0.0.1]) by localhost (ysera.fallendusk.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wUW72j2dwa6A for ; Mon, 13 Jul 2009 01:55:28 +0000 (UTC) Received: from kitty (unknown [75.12.62.113]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: gt@fallendusk.org) by ysera.fallendusk.org (Postfix) with ESMTPSA id 743F62841E for ; Mon, 13 Jul 2009 01:55:28 +0000 (UTC) Date: Sun, 12 Jul 2009 21:54:40 -0400 From: Gregory T Helton To: freebsd-questions@freebsd.org Message-ID: <20090712215440.0fa66872@kitty> In-Reply-To: <200907121903.16069.ray@stilltech.net> References: <200907121709.25015.ray@stilltech.net> <20090712195807.71c6ee6b@elune.fallendusk.org> <200907121903.16069.ray@stilltech.net> Organization: fallenDUSk X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: activate apache mod_rewrite X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2009 01:55:03 -0000 On Sun, 12 Jul 2009 19:03:16 -0600 Ray wrote: > On July 12, 2009 05:58:07 pm Gregory T Helton wrote: > > On Sun, 12 Jul 2009 17:09:24 -0600 > > > > Ray 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@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to > > > "freebsd-questions-unsubscribe@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@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@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 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" I believe it's just enabled, unless it's been disabled in a htaccess file or the httpd-vhosts.conf. Depending on how your script works though, you may need to enable htaccess in the httpd-vhost,conf, or add the rewrite lines to a htaccess file. That's application-specfic though and the documentation for your script should have details on that.