comparison doc/admin-manual/installation-base.tex @ 1133:cbfe708b9a17

Issue309: Documentation of the installation of the prxy-script doc/trunk@1243 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 29 Jun 2010 12:08:30 +0000
parents 3b67f53ff57b
children 706df18f0c01
comparison
equal deleted inserted replaced
1132:03c404871d50 1133:cbfe708b9a17
327 -o mapserver 327 -o mapserver
328 \end{lstlisting} 328 \end{lstlisting}
329 329
330 For a sucessful configuration, the response document \verb+ mapserver+ 330 For a sucessful configuration, the response document \verb+ mapserver+
331 contains a XML document describing the capabilities of the mapserver. 331 contains a XML document describing the capabilities of the mapserver.
332
333 \subsection{Proxy-Script: Installation and Configuration}
334 The Proxy-Script is required to allow requests which are send by the Map-Client
335 which is integrated in the GNV-Web-Client. This is required because of security-
336 policies according Java-Script which load further Documents during runtime.
337
338 \subsubsection{Installation}
339
340 First make sure that python is installed on the operating system.
341 Otherwise install python using the following command:
342
343 \verb+ apt-get install python+
344
345 Than the script itself must be published on the server by executing the
346 following steps:
347
348 \begin{lstlisting}
349 cd /usr/lib/cgi-bin
350 cp -i $ARTIFACT_SERVER_HOME/install/debian/ol-proxy/proxy.cgi .
351 \end{lstlisting}
352
353 \subsubsection{Configuration}
354 The Proxy-Script can only communicate with servers which it is allowed to.
355 To enable the communication to the server where the UMN-Mapserver is hosted
356 or to other Server it is necessary to edit the Proxy-Script at line 18.
357
358 There you have tor replace the placeholder THISHOSTNAME with the name which
359 will be used to reach the GNV-Web-Client.
360
361 You can add further servers using the syntax which is given in the script.
362
363 \subsubsection{Test of installation}
364
365 It is possible to test the installation using the following command:
366
367 \begin{lstlisting}
368 curl http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost
369 \end{lstlisting}
370
371 If localhost is allowed in the proxy-script the result might be this:
372
373 \begin{lstlisting}
374 <html><body><h1>It works!</h1></body></html>
375 \end{lstlisting}
376

http://dive4elements.wald.intevation.org