You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by nibblenabbler <pa...@gmail.com> on 2015/07/15 17:48:02 UTC

Re: URL Redirecting by Jetty RewriteHandler

I'm trying to do the same thing.  I have an AngularJs app hosted in my Karaf
container that I would like to use the HTML5 History API with.  This
requires the server to do url-rewriting.  

Did you have any luck configuring Jetty for url-rewriting?

Thanks!



--
View this message in context: http://karaf.922171.n3.nabble.com/URL-Redirecting-by-Jetty-RewriteHandler-tp4039880p4041438.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: URL Redirecting by Jetty RewriteHandler

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi

a RewriteHandler can be added similar to the way in [1].
Or take a look at [2], it shows how to register a handler as service.

regards, Achim

[1] - https://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler
[2] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/JettyHandlerServiceIntegrationTest.java

2015-07-15 17:48 GMT+02:00 nibblenabbler <pa...@gmail.com>:

> I'm trying to do the same thing.  I have an AngularJs app hosted in my
> Karaf
> container that I would like to use the HTML5 History API with.  This
> requires the server to do url-rewriting.
>
> Did you have any luck configuring Jetty for url-rewriting?
>
> Thanks!
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/URL-Redirecting-by-Jetty-RewriteHandler-tp4039880p4041438.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master