You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Leon van Stuivenberg <le...@iae.nl> on 2000/05/27 08:36:45 UTC
mod_rewrite
Hi
Has anyone succesfully configured mod_rewrite in combination with
Cocoon? The problem is that as soon as RewriteEngine is enabled, Cocoon
starts giving back these messages when processing any xml file:
Cocoon 1.7.4
Error found handling the request.
org.xml.sax.SAXParseException: File
"file:/servlet/org.apache.cocoon.Cocoon" not found.
at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java,
Compiled Code)
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java,
Compiled Code)
at
etc..
This happens as soon as "RewriteEngine on" is in apache's config (ie.
without rewrite rules or any other RewEng related options). Without it,
cocoon works fine.. I'm using:
apache 1.3.12
jserv 1.1.1
linux 2.2.14 (RH6.x)
Any suggestions are welcome
Thanks
Leon
Re: mod_rewrite
Posted by Leon van Stuivenberg <le...@iae.nl>.
Sylvan Ravinet wrote:
>
> So is it that mod_rewrite should be loader after mod_jserv, or before?
Ahm, it works at least with jserv after rewrite, but the problem was
that libproxy was after mod_rewrite. I haven't tested with jserv before
proxy/rewrite, at least, not with proxy and rewrite in the right order..
Leon
Re: mod_rewrite
Posted by Sylvan Ravinet <sy...@ravinet.com>.
Hello,
Leon van Stuivenberg wrote:
> The problem has been solved in the meantime.. Seems like upgrading from
> apache 1.3.9 to 1.3.12 screwed up the load order of the modules, and the
> whole rewriting engine was confused.
So is it that mod_rewrite should be loader after mod_jserv, or before?
BR
-Sylvan
--
Do, or do not. There is no try. -Yoda
Sylvan Ravinet: http://www.ravinet.com/sylvan/contact
Re: mod_rewrite
Posted by Leon van Stuivenberg <le...@iae.nl>.
Leon van Stuivenberg wrote:
>
> Giacomo Pati wrote:
>
> > Yes, without pain (my rules are on an other machine, so I can't give you my examples yet)!
The problem has been solved in the meantime.. Seems like upgrading from
apache 1.3.9 to 1.3.12 screwed up the load order of the modules, and the
whole rewriting engine was confused.
Thanks anyway!
Leon
Re: mod_rewrite
Posted by Giacomo Pati <Gi...@pwr.ch>.
Leon van Stuivenberg wrote:
>
> Giacomo Pati wrote:
>
> > Yes, without pain (my rules are on an other machine, so I can't give you my examples yet)!
>
> Ok, you got me curious about your settings. I forgot to mention that I
> also have "ProxyRequests on" in there; maybe it makes a difference.
> Rewrite_log looks like the following when loading the index.xml from
> samples:
>
> 192.168.x.x - - [27/May/2000:08:28:45 +0200]
> [mydomain.xxx/sid#8094434][rid
> #80c78fc/initial] (1) pass through /cocsam/index.xml
> 192.168.x.x - - [27/May/2000:08:28:45 +0200]
> [mydomain.xxx/sid#8094434][rid
> #80ca674/initial/redir#1] (1) pass through
> /servlet/org.apache.cocoon.Cocoon/coc
> sam/index.xml
> 192.168.x.x - - [27/May/2000:08:28:45 +0200]
> [mydomain.xxx/sid#8094434][rid
> #80cb124/initial/redir#2] (1) pass through
> /servlet/org.apache.cocoon.Cocoon/ser
> vlet/org.apache.cocoon.Cocoon
> 192.168.x.x - - [27/May/2000:08:28:45 +0200]
> [mydomain.xxx/sid#8094434][rid
> #80d106c/subreq] (1) pass through /servlet/org.apache.cocoon.Cocoon
Here the settings I've used:
RewriteEngine on
RewriteLog /var/log/httpd/rewrite_log
RewriteLogLevel 9
RewriteRule ^/c1/(.*)$ /cocoon1/org.apache.cocoon.Cocoon/samples/$1
[L,P]
ApJServMount /c1 /cocoon1
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch
Re: mod_rewrite
Posted by Leon van Stuivenberg <le...@iae.nl>.
Giacomo Pati wrote:
> Yes, without pain (my rules are on an other machine, so I can't give you my examples yet)!
Ok, you got me curious about your settings. I forgot to mention that I
also have "ProxyRequests on" in there; maybe it makes a difference.
Rewrite_log looks like the following when loading the index.xml from
samples:
192.168.x.x - - [27/May/2000:08:28:45 +0200]
[mydomain.xxx/sid#8094434][rid
#80c78fc/initial] (1) pass through /cocsam/index.xml
192.168.x.x - - [27/May/2000:08:28:45 +0200]
[mydomain.xxx/sid#8094434][rid
#80ca674/initial/redir#1] (1) pass through
/servlet/org.apache.cocoon.Cocoon/coc
sam/index.xml
192.168.x.x - - [27/May/2000:08:28:45 +0200]
[mydomain.xxx/sid#8094434][rid
#80cb124/initial/redir#2] (1) pass through
/servlet/org.apache.cocoon.Cocoon/ser
vlet/org.apache.cocoon.Cocoon
192.168.x.x - - [27/May/2000:08:28:45 +0200]
[mydomain.xxx/sid#8094434][rid
#80d106c/subreq] (1) pass through /servlet/org.apache.cocoon.Cocoon
cheers
Leon
Re: mod_rewrite
Posted by Giacomo Pati <gi...@simba.pwr.ch>.
On Sat, May 27, 2000 at 08:36:45AM +0200, Leon van Stuivenberg wrote:
> Hi
>
> Has anyone succesfully configured mod_rewrite in combination with
> Cocoon? The problem is that as soon as RewriteEngine is enabled, Cocoon
> starts giving back these messages when processing any xml file:
Yes, without pain (my rules are on an other machine, so I can't give you my examples yet)!
Giacomo
>
>
> Cocoon 1.7.4
> Error found handling the request.
>
> org.xml.sax.SAXParseException: File
> "file:/servlet/org.apache.cocoon.Cocoon" not found.
> at
> org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java,
> Compiled Code)
> at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java,
> Compiled Code)
> at
>
> etc..
>
>
> This happens as soon as "RewriteEngine on" is in apache's config (ie.
> without rewrite rules or any other RewEng related options). Without it,
> cocoon works fine.. I'm using:
> apache 1.3.12
> jserv 1.1.1
> linux 2.2.14 (RH6.x)
>
> Any suggestions are welcome
> Thanks
>
> Leon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen Web: http://www.pwr.ch