2

I'd like to password protect a limited portion of a JSP based website running on Jetty 8.1.

So for the url www.mywebsite.com/protected I want the browser to pop up a user/password entry window, whereas www.mywebsite.com is accessible to everyone.

I know that with Apache this is done with the .htaccess file. Since Jetty runs without Apache I'd like to know what's the best way to implement this?

toby88
  • 105
  • 2
  • 5

1 Answers1

1

The jsp is just a servlet so you want to configure a security realm protecting that url space in your web.xml file.

Jetty 7, 8

Jetty 9

jesse mcconnell
  • 7,102
  • 1
  • 22
  • 33