httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pieter Vanmeerbeek" <pieter.vanmeerb...@able.be>
Subject [users@httpd] Alias and Rewrite directives
Date Mon, 24 Jul 2006 15:14:39 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message