Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache rewriting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Fri Apr 01, 2011 7:01 pm    Post subject: Apache rewriting Reply with quote

Is gentoo's apache2 server set up enables for rewriting by default? If not, could someone please provide, or point me to a simple how-to that will show me how to enable rewriting on a fresh plain vanilla apache2 install?
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Fri Apr 01, 2011 9:02 pm    Post subject: Reply with quote

http://www.gentoo.org/proj/en/apache/doc/upgrading.xml


You need to enable it in APACHE2_MODULES in your /etc/make.conf
Then you will probably need to enable it in /etc/conf.d/apache2
Back to top
View user's profile Send private message
rsala
Apprentice
Apprentice


Joined: 27 Jul 2003
Posts: 160
Location: Pittsfield, MA

PostPosted: Fri Apr 01, 2011 9:39 pm    Post subject: Reply with quote

Thanks, I should have been more specific. I added the debug flag in /etc/conf.d/apache2
Code:

APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -e debug"

The output on a start seems to indicate that the rewriting module gets loaded
Code:

[Fri Apr 01 17:33:23 2011] [debug] mod_so.c(246): loaded module rewrite_module

I've read conflicting posts regarding which apache config files have to be set up to allow the .htaccess file to work and I was wondering if some one who has it working could show me which files they changed and how.
Back to top
View user's profile Send private message
msalerno
Veteran
Veteran


Joined: 17 Dec 2002
Posts: 1338
Location: Sweating in South Florida

PostPosted: Mon Apr 04, 2011 12:32 pm    Post subject: Reply with quote

Not sure how you went from mod_rewrite to access control, but here goes. The posts are you are reading are probably not conflicting, they are most likely just specific to that persons configuration. You should read up on the AllowOverride directive.

AllowOverride Directive
http://httpd.apache.org/docs/current/mod/core.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum