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 > RewriteRule needed!
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

RewriteRule needed!

Réponse
 
LinkBack Outils de la discussion
Vieux 26/02/2005, 08h41   #1
istoyanov@eudoramail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RewriteRule needed!

I have a running Zope instance + Plone site behind Apache 2 on an
Ubuntu-powered server and have added the following rewrite rule for the
basic site:

RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/basic_site/VirtualHostRoot/$1
[P,L]

The obvious result is that I can access the basic_site by just typing
the %{SERVER_NAME} in the address bar.

Lately, I added a second Plone site and would like to access it as
%{SERVER_NAME}/second_site, at the moment however I can reach it via
%{SERVER_NAME}:8080/second_site.

I believe that a second RewriteRule may me to see the site on port
80, so I ask you herewith for advice.

Thank you in advance!

  Réponse avec citation
Vieux 26/02/2005, 15h32   #2
JP. Baker
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RewriteRule needed!

In article <1109407306.077893.279890@l41g2000cwc.googlegroups .com>,
<istoyanov@eudoramail.com> wrote:
>I have a running Zope instance + Plone site behind Apache 2 on an
>Ubuntu-powered server and have added the following rewrite rule for the
>basic site:
>
>RewriteRule ^/(.*)
>http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/basic_site

/VirtualHostRoot/$1 [P,L]
>
>The obvious result is that I can access the basic_site by just typing
>the %{SERVER_NAME} in the address bar.
>
>Lately, I added a second Plone site and would like to access it as
>%{SERVER_NAME}/second_site, at the moment however I can reach it via
>%{SERVER_NAME}:8080/second_site.
>
>I believe that a second RewriteRule may me to see the site on port
>80, so I ask you herewith for advice.


RewriteRule ^/second_site($|/.*)
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/second_site$1 [P]
RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/basic_site/VirtualHostRoot/$1
[P,L]

When you get past twentieth_site you might want to look at using a
RewriteMap !!!

nhoJ
--
John P Baker
  Réponse avec citation
Vieux 27/02/2005, 11h11   #3
istoyanov@eudoramail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RewriteRule needed!

Thanks a lot for the reply!!!

I'll try this tomorrow and will report the results.

Cheers!

  Réponse avec citation
Vieux 28/02/2005, 08h28   #4
istoyanov@eudoramail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RewriteRule needed!

I tried your siggestion and it works as I needed!!!

Thank you very much again!!!

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


É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,09790 seconds with 12 queries