Michel Erard schrieb:
> So I've found a solution, I have to add additional configurations to my
> proxy, for forms and ajax:
> 
> <Location /cocoon-forms-impl>
>    ProxyPass        http://localhost:8888/cocoon-forms-impl
>    ProxyPassReverse http://localhost:8888/cocoon-forms-impl
>    ProxyPassReverseCookiePath / /
>    Allow from all
> </Location>
> 
> <Location /cocoon-ajax-impl>
>    ProxyPass        http://localhost:8888/cocoon-ajax-impl
>    ProxyPassReverse http://localhost:8888/cocoon-ajax-impl
>    ProxyPassReverseCookiePath / /
>    Allow from all
> </Location>
> 
> because the scripts are declared in the html code as:
> 
> <script type="text/javascript"
> src="/cocoon-ajax-impl/resource/external/dojo/dojo.js"></script>
> 
> Is this normal? I find this a bit a dirty solution.
> 

Well I thought that normally you deploy the app as war in a servlet container 
like jetty/apache tomcat. This will
'prefix' your the url by the webapp name (e.g. myWebapp) and this url 
(myWebapp) sould be proxied.

-->

Servlet container running at http://localhost:8080/
MyWebapp running at http://localhost:8080/myWebapp/
MyApp running at http://localhost:8080/myWebapp/myApp/
(cocoon-forms-impl -> running at 
http://localhost:8080/myWebapp/cocoon-forms-impl/ )

<Location /myWebapp>
   ProxyPass        http://localhost:8080/myWebapp
   ProxyPassReverse http://localhost:8080/myWebapp
   ProxyPassReverseCookiePath / /
   Allow from all
</Location>

App reacchable via http://localhost/myWebapp/myApp

Felix


> Regards,
> 
> Mike
> 
> PS: sorry, if it's my second post to this subject, but I've little
> trouble with my mailserver ;-)
> 
> -----Ursprüngliche Nachricht-----
> Von: Michel Erard [mailto:[EMAIL PROTECTED]
> Gesendet: Fr 19.10.2007 10:10
> An: [email protected]
> Betreff: http-proxy and forms/ajax
> 
> Hello,
> 
> I've a problem, when I use a http-proxy in front of my
> cocoon-application, the browser cannot get the javascript files from
> forms and ajax block.
> 
> In my pipeline I've defined like this:
> 
>   <map:transform type="forms" />
>   <map:transform src="stylesheets/forms-style.xsl">
>     <map:parameter name="dojo-resources"
> value="{servlet:ajax:/resource/external/dojo}" />
>     <map:parameter name="forms-resources"
> value="{servlet:forms:/resource/external/forms}" />
>   </map:transform>
>   <map:transform type="servletLinkRewriter"/>
> 
> if use the application direct width jetty (localhost:8888/myApp), it is
> running well.
> 
> When I use a proxy, for testing issues, defined in apache httpd, becaus
> so I can test different cases:
> 
> <Location /myApp/mandantA>
>    RequestHeader add MANDANT mandantA
>    ProxyPass        http://localhost:8888/myApp
>    ProxyPassReverse http://localhost:8888/myApp
>    ProxyPassReverseCookiePath / /
>    Allow from all
> </Location>
> 
> <Location /myApp/mandantB>
>    RequestHeader add MANDANT mandantB
>    ProxyPass        http://localhost:8888/myApp
>    ProxyPassReverse http://localhost:8888/myApp
>    ProxyPassReverseCookiePath / /
>    Allow from all
> </Location>
> 
> I've problems with forms and ajax, becaus the links in the html code
> aren't correct. They are defined as:
> 
> cocoon.formsResourcesUri =
> "/myApp/cocoon-forms-impl/resource/external/forms";
> 
> And the resources aren't found with the proxy. I thing they should be:
> 
> cocoon-forms-impl/resource/external/forms or
> http://localhost/myApp/mandantA/cocoon-forms-impl/resource/external/forms
> 
> Do I have to configure this or did I make a fault?
> 
> Thanks,
> 
> Mike
> 
> 
> 
> 
> ____________________________________________
> QuickLine WebMail - http://www.QuickLine.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 


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

Reply via email to