You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Brian Maddy <br...@brianmaddy.com> on 2004/05/06 01:40:28 UTC

CSS doesn't work with proxy setup

Hi all,

I followed the directions at the Proxying Apache Lenya page 
(http://cocoon.apache.org/lenya/docs/components/deployment/mod_proxy.html) 
and it only partially worked.  All the resources (images, css, etc.) are 
pointed to the wrong location.

For example, the browser is looking for the .css file at 
/lenya/bmaddy/live/css/page.css when it should be /css/page.css.  I 
think it has something to do with the {page-envelope:context-prefix} 
action, variable, or whatever it is.  Ideas anyone?

View the page for yourself if you like:
http://gw.brianmaddy.com/

Also, how do you get rid of that ugly jsessionid variable in the url 
when redirecting from / to /index.html?

Thanks in advance!
Brian


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: CSS doesn't work with proxy setup

Posted by Jann Forrer <ja...@id.unizh.ch>.
On Thu, 6 May 2004, Michael Wechner wrote:

> Brian Maddy wrote:
>
> > Hi all,
> >
> > I followed the directions at the Proxying Apache Lenya page
> > (http://cocoon.apache.org/lenya/docs/components/deployment/mod_proxy.html)
> > and it only partially worked.  All the resources (images, css, etc.)
> > are pointed to the wrong location.
> >
> > For example, the browser is looking for the .css file at
> > /lenya/bmaddy/live/css/page.css when it should be /css/page.css.  I
> > think it has something to do with the {page-envelope:context-prefix}
> > action, variable, or whatever it is.  Ideas anyone?
>
>
> you can add more "rules" to the proxy configuration, e.g.
>
> ProxyPass          /lenya/bmaddy/live/css/ http://192.168.1.13:8080/lenya/bmaddy/live/css/
> ProxyPassReverse   /lenya/bmaddy/live/css/ http://192.168.1.13:8080/lenya/bmaddy/live/css/
>
> and the same for the images (and of course still the root)
>
>

There is also a Wiki page describing the use of mod_proxy and mod_rewrite
together with lenya:

http://wiki.cocoondev.org/Wiki.jsp?page=LenyaHowToModProxy

There you will find one rule for the css as well. However the rules for
the images is missing.

Jann

---------------------------------------------------------------
Jann Forrer
Informatikdienste
Universität Zürich
Winterthurerstr. 190
CH-8057 Zuerich

oooO   mail:  jann.forrer@id.unizh.ch
(  )   phone: +41 1 63 56772
 \ (   fax:   +41 1 63 54505
  \_)  http://www.id.unizh.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: CSS doesn't work with proxy setup

Posted by Michael Wechner <mi...@wyona.com>.
Brian Maddy wrote:

> Hi all,
>
> I followed the directions at the Proxying Apache Lenya page 
> (http://cocoon.apache.org/lenya/docs/components/deployment/mod_proxy.html) 
> and it only partially worked.  All the resources (images, css, etc.) 
> are pointed to the wrong location.
>
> For example, the browser is looking for the .css file at 
> /lenya/bmaddy/live/css/page.css when it should be /css/page.css.  I 
> think it has something to do with the {page-envelope:context-prefix} 
> action, variable, or whatever it is.  Ideas anyone?


you can add more "rules" to the proxy configuration, e.g.

ProxyPass          /lenya/bmaddy/live/css/ http://192.168.1.13:8080/lenya/bmaddy/live/css/
ProxyPassReverse   /lenya/bmaddy/live/css/ http://192.168.1.13:8080/lenya/bmaddy/live/css/

and the same for the images (and of course still the root)


HTH

Michi


>
> View the page for yourself if you like:
> http://gw.brianmaddy.com/
>
> Also, how do you get rid of that ugly jsessionid variable in the url 
> when redirecting from / to /index.html?
>
> Thanks in advance!
> Brian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org