Apache Server configuration support - mod rewrite question

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2006 > mod rewrite question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod rewrite question
Sean

2006-11-06, 7:27 pm

I've got an odd thing happening and I'm not sure why. I've got the
following mod rewrite conditions and rules for the default site on my
apache box:

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all

RewriteEngine on
RewriteCond %{REQUEST_URI} /press/
RewriteRule /press/(.*) /press.php?id=$1 [L]

RewriteCond %{REQUEST_URI} /jobs/
RewriteRule /jobs/(.*) /jobs.php?id=$1 [L]
</Directory>

This works fine. Does what I want it to, which is rewrite
/jobs.php?id=873465 to /jobs/873465. All's well there. However, a
side affect is that an alias that I have in my main configuration no
longer works:

Alias /mysql /path/to/phpMyAdmin-2.8.0.3

When I browse to http://localhost/mysql , I get a "Forbidden. You
don't have permission to access /mysql/ on this server." When I
comment out the mod rewrite lines and bounce apache, it goes back to
working just fine.

Any insight?

Thanks,

Sean

shimmyshack

2006-11-06, 7:27 pm

Order deny,allow
Deny from all

That oughta do it!! This is usual in the httpd.conf as a default, and
then of course it is immediately overridden so people can see stuff.

It is interesting that anything works at all really, I can only assume
you have something somewhere that overrides this yet again. so you can
see stuff in jobs.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com