Afficher un message
Vieux 13/02/2005, 16h09   #1
Michael F Gordon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Rewriting /foo to /~user/foo

Server: Apache on Solaris

We have a user who wants to run a low-traffic WIKI from their home
directory. I've set up a virtual host wiki.domain.name with
DocumentRoot set to /home/user/public_html/wiki to hide the /~user/
part, but this makes the server run the scripts as the web server user
rather than the user whose directory the scripts are in. I thought
about using mod_rewrite to put /~user/wiki back - accessing the scripts
with this URL gets them run as the user as expected - but I can't see
any way to get the server to reinterpret the result of a rewrite.
Adding [R] to the rule to make it send a redirect works but exposes
/~user/wiki again.

Any ideas?


Michael Gordon
--
Quidquid latine dictum sit, altum viditur.
  Réponse avec citation
 
Page generated in 0,05587 seconds with 9 queries