On 2005-05-24 09:01:29 -0400, Rafa P�rez <[EMAIL PROTECTED]> said:
Hi all. I have been trying to proxy lenya with mod_proxy following the
instructions given in
http://lenya.apache.org/1_2_x/tutorial/mod_proxy_and_lenya_continued.html
but I have not succeeded (only the live side of a publication).
The pages are served, but the have not any style, they are served only
as text and links, and images are not displayed too. I have the
following configuration in my apache's config file:
<VirtualHost *:80>
ServerName mypub.com
ProxyRequests Off
RewriteEngine On
DirectoryIndex index.html
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8080/lenya/mypub/live/
ProxyPassReverse / http://localhost:8080/lenya/mypub/live/
# this is needed for css, etc.
RewriteRule ^/$ index.html [R]
RewriteRule ^/lenya/mypub/live/(.*)$ $1 [R,L]
RewriteRule ^/lenya(.*) http://localhost:8080/lenya/mypub/live/$1 [ P]
# Rewrite for Lenya-wide resources (e.g. 404 page)
RewriteRule ^/lenya/(.*) http://localhost:8080/lenya/$1 [P]
RewriteRule ^/([^/\.]+)/(.*) http://localhost:8080/$1/live/$2 [P]
CustomLog /var/log/apache2/gruposfa-access.log combined
ErrorLog /var/log/apache2/gruposfa-error.log
</VirtualHost>
I am using lenya-1.2.3 on tomcat-5.0.28, and I have deployed lenya in
${TOMCAT_HOME}/webapps/lenya. Does anyone know what is wrong?
Did you check your error log? The links to css and images, obviously,
aren't being rewritten correctly. What does the error log say?
Sean
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]