|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Thanks a lot for the reply!!!
I'll try this tomorrow and will report the results. Cheers! |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
I tried your siggestion and it works as I needed!!!
Thank you very much again!!! |
|
![]() |
| Outils de la discussion | |
|
|