Last change
on this file since 41ea292 was
41ea292,
checked in by zzz <zzz@…>, 9 years ago
|
eepsite:
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> |
---|
3 | |
---|
4 | <!-- |
---|
5 | Configure a custom context for the eepsite. |
---|
6 | |
---|
7 | * CGI Servlet. |
---|
8 | * |
---|
9 | * The cgi bin directory can be set with the "cgibinResourceBase" init parameter |
---|
10 | * or it will default to the resource base of the context. |
---|
11 | * |
---|
12 | * The "commandPrefix" init parameter may be used to set a prefix to all |
---|
13 | * commands passed to exec. This can be used on systems that need assistance to |
---|
14 | * execute a particular file type. For example on windows this can be set to |
---|
15 | * "perl" so that perl scripts are executed. |
---|
16 | * |
---|
17 | * The "Path" init param is passed to the exec environment as PATH. Note: Must |
---|
18 | * be run unpacked somewhere in the filesystem. |
---|
19 | * |
---|
20 | * Any initParameter that starts with ENV_ is used to set an environment |
---|
21 | * variable with the name stripped of the leading ENV_ and using the init |
---|
22 | * parameter value. |
---|
23 | --> |
---|
24 | |
---|
25 | <Configure class="org.mortbay.jetty.handler.ContextHandler"> |
---|
26 | <Set name="contextPath">/cgi-bin</Set> |
---|
27 | <Set name="resourceBase">./eepsite/cgi-bin/</Set> |
---|
28 | <Set name="handler"> |
---|
29 | <New class="org.mortbay.jetty.servlet.ServletHandler" > |
---|
30 | <Call name="addServletWithMapping"> |
---|
31 | <Arg> |
---|
32 | <New class="org.mortbay.jetty.servlet.ServletHolder"> |
---|
33 | <Arg> |
---|
34 | <New class="org.mortbay.servlet.CGI" /> |
---|
35 | </Arg> |
---|
36 | <Call name="setInitParameter"> |
---|
37 | <Arg>Path</Arg> |
---|
38 | <Arg>/usr/local/bin:/bin:/usr/bin</Arg> |
---|
39 | </Call> |
---|
40 | </New> |
---|
41 | </Arg> |
---|
42 | <Arg>/</Arg> |
---|
43 | </Call> |
---|
44 | </New> |
---|
45 | </Set> |
---|
46 | </Configure> |
---|
Note: See
TracBrowser
for help on using the repository browser.