|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Jetty/5.1.12 - Configuring realm for CGI-BINHello, I wonder if someone can provide me with some help with configuring a realm with a CGI-BIN context for Jetty 5.1.12:
A context for cgi-bin has been "configured", but is not picking up the default realm (please see below for configuration). Can someone please tell me what is wrong with the configuration. thanks Miles. <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> ....... <security-constraint> <web-resource-collection> <web-resource-name>SDP Listbox Editor</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>user</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>defaultrealm</realm-name> </login-config> <security-role> <role-name>user</role-name> </security-role> </web-app> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd"> <Configure class="org.mortbay.jetty.Server"> ....... <Call name="addContext"> <Arg>/cgi-bin/*</Arg> <Set name="ResourceBase"><SystemProperty name="jetty.home" default="."/>/cgi-bin/</Set> <Call name="addServlet"> <Arg>Common Gateway Interface</Arg> <Arg>/</Arg> <Arg>org.mortbay.servlet.CGI</Arg> <Put name="Path">/usr/local/bin:/usr/ucb:/bin:/usr/bin</Put> </Call> </Call> <Call name="addRealm"> <Arg> <New class="org.mortbay.http.HashUserRealm"> <Set name="name">defaultrealm</Set> <Call name="load"> <Arg>/opt/product/changesynergy/tc47_sdp/cs_app/etc/realm.properties</Arg> </Call> </New> </Arg> </Call> </Configure> |
| Free embeddable forum powered by Nabble | Forum Help |