[users@httpd] Alias and Rewrite directives

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

 



Hi,

I'm trying to redirect a specific URL  (for example
http://example.com/trigger/username)  to a specific script on disk (rewrite
to  /libexec/pfb.php?user=username).

The document root is set to /testing.

Now I want my script (pfb.php) to be stored outside my document root but
still accessible by the server. So I tried adding an alias line before the
document root line : 

Alias /libexec /blabla/test
DocumentRoot  /testing


My url is rewritten to /testing/libexec/pfb.php?user=username   (it says so
in the logging)

However apache complains it can't find the file /testing/libexec/pfb.php in
the error logging.

Putting the same file with the same access wrights under /testing/libexec
works fine.


Has anyone an idea on how to accomplish this?

Kind regards,
Pieter








--
---------------------------------------------------
Able: 1996-2006: already 10 safe years in YOUR company!

aXs GUARD has completed security and anti-virus checks on this e-mail (http://www.axsguard.com)
---------------------------------------------------
Able NV: ond.nr 0457.938.087
RPR Mechelen


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