[users@httpd] problem with rewriterule, handlers and documentroot

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

 



Hi,

assume the following enviroment:

(Apache 1.3.33)

DocumentRoot /dummy
RewriteRule ^(.*)$ /dummy/demo$1

the rewrite rule magically sets the documentroot to /dummy/demo , when the flag [PT] is used it does not change the documentroot.

What I tried to do is: changeing the document-root according to some critera but using one handler (via Action) for all of them.

The Problem is:
- without the PT Flag, the documentroot is changed, so that the handler is no longer reachable (cause the path passed to "Action" as 2nd argument is relative to the new DocumentRoot) - with the PT Flag a couple of weird things happen, for example DirectoryIndexes work no longer ( apache says: Directoryindex forbidden by rule , which rule? how can I find out?)


Thank you very much and best regards
Sebastian


---------------------------------------------------------------------
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