You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "J. Wolfgang Kaltz" <ka...@interactivesystems.info> on 2005/02/09 16:10:51 UTC
proxy conf
Dear proxy / rewrite experts :)
trying out the instructions at
http://wiki.apache.org/lenya/HowToModProxy ,
I found two things do not work for me:
- search, as the "search-live" urls are not rewritten
- error pages, they work but are missing resources (images)
Adding the following 2 rules seems to correct these issues:
- after the css line, add this
RewriteRule ^/lenya/lenya/(.*) http://www....:8080/lenya/lenya/$1 [P]
to catch all Lenya-wide resources
- adding this
RewriteRule ^/lenya/(.*)/search-live/(.*)$
http://www...:8080/lenya/$1/search-live/$2 [P]
catches the search requests
So, questions to the experts : are these rules in fact needed, or am I
missing something ? If they are needed, I'll add them to the wiki.
Re: proxy conf
Posted by Jann Forrer <ja...@id.unizh.ch>.
On Wed, 9 Feb 2005, Gregor J. Rothfuss wrote:
> J. Wolfgang Kaltz wrote:
> > Dear proxy / rewrite experts :)
> >
> > trying out the instructions at
> > http://wiki.apache.org/lenya/HowToModProxy ,
> >
> > I found two things do not work for me:
> > - search, as the "search-live" urls are not rewritten
> > - error pages, they work but are missing resources (images)
> >
> > Adding the following 2 rules seems to correct these issues:
> >
> > - after the css line, add this
> >
> > RewriteRule ^/lenya/lenya/(.*) http://www....:8080/lenya/lenya/$1 [P]
> >
> > to catch all Lenya-wide resources
>
This seems to be necessary e.g. for the lenya menu bar which of course did
not show up in the live area. For our authoring server we have
defined one Rule which will redirect the user to the login panel if he
submits a request like: http://cms.unizh.ch/sandbox. Within the wiki this
is:
RewriteRule ^/([^/\.]+)/$ http://cms.authoring.ch/lenya/$1/authoring/index.html [R,L]
For all other Request the following rule is applied:
RewriteRule ^/(.*) http://cms.authoring.ch:8080/$1 [P,L]
So that /lenya/lenya/(.*) request were redirect accordingly (see
http://cms.unizh.ch/sandbox).
> i don't think it's needed, at least jann seems to have gotten it running:
>
Yes for the authoring server it might be necessary at least for a certain
setup.
[... ]
> > RewriteRule ^/lenya/(.*)/search-live/(.*)$
> > http://www...:8080/lenya/$1/search-live/$2 [P]
> >
> > catches the search requests
> >
> > So, questions to the experts : are these rules in fact needed, or am I
> > missing something ? If they are needed, I'll add them to the wiki.
>
You should also describe your server setup in some detail because this are
rules which are not absolute necessary.
BTW I promised long time ageo to update the HowToModProxy and to describe
also a more simple setup. I hope to get around to doing it soon .....
> the search was definitely 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: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: proxy conf
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
J. Wolfgang Kaltz wrote:
> Right, but looking at the paths in his source for the error page, there is
> /lenya/css/default.css -> this is caught by *.css
> and
> /unizh/authoring/...
> which is of course different than the default Lenya path to the common
> resources (/lenya/lenya)
>
> As far I can tell right now, this only affects installation-wide images,
> so I guess it's not a big issue.
you are right: http://ejo.ch/nonexistingpage
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: proxy conf
Posted by "J. Wolfgang Kaltz" <ka...@interactivesystems.info>.
Gregor J. Rothfuss schrieb:
(...)
>> - after the css line, add this
>>
>> RewriteRule ^/lenya/lenya/(.*) http://www....:8080/lenya/lenya/$1 [P]
>>
>> to catch all Lenya-wide resources
>
>
> i don't think it's needed, at least jann seems to have gotten it running:
>
> http://www.unicms.unizh.ch/schulung/k3wertung.html
Right, but looking at the paths in his source for the error page, there is
/lenya/css/default.css -> this is caught by *.css
and
/unizh/authoring/...
which is of course different than the default Lenya path to the common
resources (/lenya/lenya)
As far I can tell right now, this only affects installation-wide images,
so I guess it's not a big issue.
Regarding the search rule, I'll add one to the Wiki right now, although
I am not sure my rule is the most efficient, maybe someone can check
over it.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: proxy conf
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
J. Wolfgang Kaltz wrote:
> Dear proxy / rewrite experts :)
>
> trying out the instructions at
> http://wiki.apache.org/lenya/HowToModProxy ,
>
> I found two things do not work for me:
> - search, as the "search-live" urls are not rewritten
> - error pages, they work but are missing resources (images)
>
> Adding the following 2 rules seems to correct these issues:
>
> - after the css line, add this
>
> RewriteRule ^/lenya/lenya/(.*) http://www....:8080/lenya/lenya/$1 [P]
>
> to catch all Lenya-wide resources
i don't think it's needed, at least jann seems to have gotten it running:
http://www.unicms.unizh.ch/schulung/k3wertung.html
> - adding this
>
> RewriteRule ^/lenya/(.*)/search-live/(.*)$
> http://www...:8080/lenya/$1/search-live/$2 [P]
>
> catches the search requests
>
> So, questions to the experts : are these rules in fact needed, or am I
> missing something ? If they are needed, I'll add them to the wiki.
the search was definitely missing.
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org