[users@httpd] mod rewrite question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I had already posted this on the configuration list, but got no
replies, so I thought someone here might be able to better answer.

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

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux