1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>CGI</title><link rel="stylesheet" href="docbook.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><link rel="home" href="index.html" title="ZoneCheck II"><link rel="up" href="ch01.html" title="Chapter�1.�Installation"><link rel="previous" href="ch01s02.html" title="Directory layout"><link rel="next" href="ch01s04.html" title="inetd"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><h2 class="title" style="clear: both"><a name="id2493790"></a>CGI</h2></div></div><p>Here is an exemple of
2
<a href="http://httpd.apache.org" target="_top">Apache2</a> configuration file,
3
assuming ZoneCheck has been installed in
4
<tt>/usr/local</tt> (PREFIX=/usr/local)
5
and for html pages generated in the
6
<tt>/zc/</tt> namespace (HTML_PATH=/zc).
7
</p><table border="0" bgcolor="#E0E0E0"><tr><td><pre class="screen">
8
AliasMatch ^/zonecheck/?$ /usr/local/libexec/zonecheck/www/html/form.html
9
AliasMatch ^/zonecheck/(en|fr)/?$ /usr/local/libexec/zonecheck/www/html/form.html.$1
10
AliasMatch ^/zonecheck/(en|fr)/(.*)$ /usr/local/libexec/zonecheck/www/html/$2.$1
11
ScriptAlias /zonecheck/cgi-bin/ /usr/local/libexec/zonecheck/cgi-bin/
12
Alias /zonecheck/js/ /usr/local/libexec/zonecheck/www/js/
13
Alias /zonecheck/style/ /usr/local/libexec/zonecheck/www/style/
14
Alias /zonecheck/img/ /usr/local/libexec/zonecheck/www/img/
15
Alias /zonecheck/ /usr/local/libexec/zonecheck/www/html/
17
<Directory /usr/local/libexec/zonecheck/cgi-bin/>
21
<Directory /usr/local/libexec/zonecheck/www/>
22
Options Includes FollowSymLinks MultiViews
25
</pre></td></tr></table><p>
26
</p></div></body></html>