PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > How to Redirect NOT to document_root?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

How to Redirect NOT to document_root?

Réponse
 
LinkBack Outils de la discussion
Vieux 05/02/2007, 01h28   #1
bunster
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to Redirect NOT to document_root?

Hi
I have apache configured with caucho resin - essentially this means I
can access my applications on resin (e.g. port 8081) via the apache
web server. For example - i can get to http://MyHost/MyApplication?
parm1=xxx&parm2=yyy

However, I want to be able to have URLs on my site that are
http://MyHost/MyRoot/MyApplication/xxx/yyy

Now, I have my rewriteRules firing OK in so far as it splits up the
url nicely into the parameters - the above generates the following in
the logs:

(3) applying pattern '^/MyRoot/([^/\.]+)/([^/\.]+)/([^/\.]+)$' to uri
'/MyRoot/MyApplication?/xxx/yyy'
(2) rewrite /MyRoot/xxx/yyy -> /MyRoot/MyApplication?
parm1=xxx&parm2=yyy
(3) split uri=/MyRoot/MyApplication?parm1=xxx&parm2=yyy -> uri=/MyRoot/
MyApplication, args=parm1=xxx&parm2=yyy
(2) local path result: /MyRoot/MyApplication
(2) prefixed with document_root to /var/apache2/htdocs/MyRoot/
MyApplication


BUT this doesn't work for me because this isn't a "local" path but a
web-app on effectively the same server. There is no file at the
document_root location - but there is a uri available at /MyRoot/
MyApplication if only the rewrite wouldn't put the document_root on.

It seems like there must be a resolution to this...

Thanks

  Réponse avec citation
Vieux 05/02/2007, 02h11   #2
HansH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to Redirect NOT to document_root?

"bunster" <mark.debunnier@gmail.com> schreef in bericht
news:1170638922.835989.143260@p10g2000cwp.googlegr oups.com...
> I have apache configured with caucho resin - essentially this means I
> can access my applications on resin (e.g. port 8081) via the apache
> web server. For example - i can get to http://MyHost/MyApplication?
> parm1=xxx&parm2=yyy
>
> However, I want to be able to have URLs on my site that are
> http://MyHost/MyRoot/MyApplication/xxx/yyy
>
> (2) prefixed with document_root to /var/apache2/htdocs/MyRoot/
> MyApplication
> BUT this doesn't work for me because this isn't a "local" path but a
> web-app on effectively the same server.
>

Looks like should be a proxiing rewrite.
Drop your rewriterule((s) and condition(s)) too.

HansH


  Réponse avec citation
Vieux 05/02/2007, 09h05   #3
bunster
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to Redirect NOT to document_root?

On 5 Feb, 02:11, "HansH" <h...@invalid.invalid> wrote:
> "bunster" <mark.debunn...@gmail.com> schreef in berichtnews:1170638922.835989.143260@p10g2000cwp.g ooglegroups.com...> I have apache configured with caucho resin - essentially this means I
> > can access my applications on resin (e.g. port 8081) via the apache
> > web server. For example - i can get tohttp://MyHost/MyApplication?
> > parm1=xxx&parm2=yyy

>
> > However, I want to be able to have URLs on my site that are
> >http://MyHost/MyRoot/MyApplication/xxx/yyy

>
> > (2) prefixed with document_root to /var/apache2/htdocs/MyRoot/
> > MyApplication
> > BUT this doesn't work for me because this isn't a "local" path but a
> > web-app on effectively the same server.

>
> Looks like should be a proxiing rewrite.
> Drop your rewriterule((s) and condition(s)) too.
>
> HansH


Proxiing rewrite sounds good - how do I do that? (other then by
removing my rewrite rules)

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


É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,10514 seconds with 11 queries