Has anybody found the answer to this problem?

Thanks!

Rafa Pérez wrote:

On 6/2/05, Rafa Pérez <[EMAIL PROTECTED]> wrote:
I have no answer simple answer to your question. I propose the following
procedure:
- empty you rewrite-log
- access the index page one time and having a look at the page source in
order to get the path to your css
- ater that I would analyse your rewrite log especially what is happening
with the css-request.

BTW it is important the your publication.xconf file is matched to your
RewriteRule.

My fault again. I had changed the url in my publication.xconf several
times to make it work and I forgot to put the correct one in the last
test. I changed it and everything is working fine. Thank you for all
your help Jann.

Hi again. After some time trying some things with my proxy
configuration here I am again.
First of all, it seems that if are defined some rewriting rules in the
apache configuration file, it is not necesary to change the
publication.xconf at all. In fact, I have done this and it works, so I
wonder why should it be necesary to change that file?
Otherwise, I have deployed my publication in tomcat under the ROOT
context of the servlet engine (as explained in
http://lenya.apache.org/1_2_x/tutorial/mod_proxy_and_lenya.html)
and I realized about some problems when trying to make the proxying
for the live side of the site:
   * The pages shown in the first level of the publication (as the
index page of the site) search for the css and the project-logo in
"/lenya/{pub}/live/css/page.css" and "/lenya/{pub}/live/images/project-logo.jpg".
   * The pages shown in the second level look for the same files in
"../css/page.css" and "../images/projecto-logo.jpg"

This behaviour makes that the rewrite rules given in
http://lenya.apache.org/1_2_x/tutorial/mod_proxy_and_lenya_continued.html
are not completely correct to make it work properly. E.g. if I am
trying to make apache serves the pages as http://www.client.com/mypub
(and I have deployed under the ROOT context in tomcat), I need to
change

# Rewrite for Lenya-wide resources (e.g. 404 page) RewriteRule ^/lenya/(.*)
http://www.client.com:8080/lenya/$1 [P]
to
                   RewriteRule ^/lenya/(.*) http://www.client.com:8080/$1 [P]

On the other hand, if I configure apache to serve the pages through
http://www.mypub.com, I need to change the rewrite rules to make them
appear in the following order:
       RewriteRule ^/$ index.html [R]
       RewriteRule ^/gruposfa/live/(.*)$ $1 [R,L]
       #This is one of the rules for the Lenya-wide resources. It must
       #be write as it appears in the tutorial
       RewriteRule ^/lenya/(.*) http://localhost:8080/lenya/$1 [P]

RewriteRule ^/(.*) http://localhost:8080/gruposfa/live/$1 [P]
       # Rewrite for Lenya-wide resources (e.g. 404 page)
       RewriteRule ^/([^/\.]+)/(.*) http://localhost:8080/$1/live/$2 [P]

       ProxyPassReverse / http://localhost:8080/

HTH anyone who tries a similar configuration. Please, try it if you
can and tell me about.

Rafa

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
---------------======ooOO000OOoo======---------------
Vicente Javier Rosselló Ferrer
E-mail: [EMAIL PROTECTED]
Tel: 971 17 2884
Centre de Tecnologies de la Informació a la UIB

Edifici Anselm Turmeda - CTI
Ctra. Valldemossa 7.5km
Universitat de les Illes Balears
============================================== Este mensaje, y toda la información adjunta, es confidencial y puede ser de uso restringido. Si Ud. no es uno de los destinatarios señalados, por favor informe al emisor, y borre y destruya el original y todas las copias del mensaje. No debe copiar, reenviar y / o revelar este mensaje , total o parcialmente, sin autorización del emisor.

This message, including attachments, is confidential and may be privileged. If you ar not an intended recipient, please notify the sender then delete and destroy the orginial message and all copies. You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to