TWiki Webs: Main TWiki Netview
Edit | Attach | Ref-By | Printable | Raw Text | Diffs | r1.2 | > | r1.1 | More
Content
Netview web home Register Changes Index Search

Go to topic

Change Password
Links
NetView global user group IBM NetView product page nv-l mailing list archive
Question from nv-l - Running CGI code from Jetty web server

My question concerns NetView 6000 for UNIX Ver 6.02 and the Jetty web server. I would like to run some CGI scripts under the Jetty Server. How do I , or can I configure the server to know where CCI code exists ?

Answer

I don't have Netview for Unix 6.x but I tried this on 7.1.4 so I assume this should work for 6.x onwards (or whenever they started to use the jetty webserver?) This can be used to build web frontends to ovtopodump, nvmaputil.sh, nvdbformat etc.. which can be useful to support teams. Just be aware of the usual security risks involved with enabling cgi.

Add the following to jetty.xml, create the cgi-bin directory and restart jetty.


  <Call name="addContext">
    <Arg>/cgi-bin/*</Arg>
    <Set name="ResourceBase">/usr/OV/www/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>

-- WingTang - 23 Jan 2006