PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Rewriting /foo to /~user/foo
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Rewriting /foo to /~user/foo

Réponse
 
LinkBack Outils de la discussion
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
Vieux 14/02/2005, 05h37   #2
André Malo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rewriting /foo to /~user/foo

* Michael F Gordon <mfg@ee.ed.ac.uk> wrote:

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


[PT].

nd
  Réponse avec citation
Vieux 15/02/2005, 13h55   #3
Michael F Gordon
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Rewriting /foo to /~user/foo

=?ISO-8859-1?Q?Andr=E9?= Malo <auch-ich-m@g-kein-spam.com> writes:
>[PT].


Thanks. Now that I know what this flag does, the description of it in
the mod_rewrite manual makes a bit more sense. Am I right in thinking
that in this case it ensures that mod_user sees something it can rewrite
rather than whatever it sees without [PT]? What does it see without
[PT] anyway?


Michael
--
Quidquid latine dictum sit, altum viditur.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08780 seconds with 11 queries