Password protect app in jetty

Posted by JohnW on Server Fault See other posts from Server Fault or by JohnW
Published on 2009-11-02T23:14:35Z Indexed on 2012/06/26 9:18 UTC
Read the original article Hit count: 186

Filed under:

I am testing a webapp (.war) running in Jetty 7. For demo purposes I want to run this on a public URL, however I would like not to have the whole world (if they happen to come across the URL) be able to see it.

Is there a way to make Jetty require a basic-auth type of authentication when accessing the webapp (without modifying anything inside the war, i.e. no edits on the web.xml file)? Or if not the webapp, then any part of what Jetty provides at port 8080?

© Server Fault or respective owner

Related posts about jetty