Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274687 - apache 2.2 global mod_rewrite not working
Summary: apache 2.2 global mod_rewrite not working
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 10:02 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2009-07-05 22:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2009-06-19 10:02:20 UTC
The default configuration of apache on gentoo seems to disable mod_rewrite somehow. I have the following setup:

* Installed apache
* Created /etc/apache2/modules.d/99_mod_rewrite.conf
* Added to 99_mod_rewrite:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/useless/.* /${1} [PT,L]
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 3
</IfModule>
* verified "LoadModule rewrite_module modules/mod_rewrite.so" is in httpd.conf
* started apache
* opened http://localhost/useless/index.html
* got sad

I've been trying to figure out what hinders mod_rewrite from working. The module is loaded and an empty /var/log/apache2/rewrite_log is created. So the config is working. But it doesn't trigger. And nothing is written to the log file.
I guess that the issue is somewhere in the way apache is configured by default on gentoo, but I can't find what is wrong. Or if I'm just being plain stupid

Reproducible: Always

Steps to Reproduce:
Comment 1 Wormo (RETIRED) gentoo-dev 2009-06-27 06:45:02 UTC
Are you still stuck on this? If so, I think forums.gentoo.org might be a better place for this, since it's likely a configuration problem... if it really looks like a bug after you hash things out more, then you could come back here with more details.
Comment 2 Wormo (RETIRED) gentoo-dev 2009-07-02 06:06:29 UTC
I'm closing this as "needinfo" because we'll need more details (e.g. emerge --info, apache config files) if you're really encountering a bug (however I suspect you haven't replied yet due to having solved this yourself...)
Comment 3 Christoph Brill (egore) (RESIGNED) 2009-07-05 22:40:59 UTC
I'm currently running this gentoo forums thread[1] to find the issue ... so far nothing helpful came up. Will reopen once I'm sure it's a bug.

[1] http://forums.gentoo.org/viewtopic-t-776642-start-0-postdays-0-postorder-asc-highlight-.html