add apache snippet to self-service install docs
authorivan <ivan>
Sun, 10 Apr 2005 13:01:37 +0000 (13:01 +0000)
committerivan <ivan>
Sun, 10 Apr 2005 13:01:37 +0000 (13:01 +0000)
httemplate/docs/selfservice.html

index 34c2f83..674b1fb 100644 (file)
@@ -33,7 +33,12 @@ Then:
       <li>regcode.html - Registration code pre-signup
       <li>stateselect.html - State selection pre-signup
     </ul>
-  <li>Enable CGI execution for files with the `.cgi' extension.  (with <a href="http://www.apache.org/docs/mod/mod_mime.html#addhandler">Apache</a>)
+  <li>Enable CGI execution for files with the `.cgi' extension.  (with <a href="http://www.apache.org/docs/mod/mod_mime.html#addhandler">Apache</a>), for example: <pre>
+#directory where selfservice .cgi scripts and .html templates are located
+&lt;Directory /var/www/selfservice&gt;
+AddHandler cgi-script .cgi
+Options +ExecCGI
+&lt;/Directory&gt;</pre>
   <li>Create the /usr/local/freeside directory on the external machine (owned by the freeside user).
   <li>touch /usr/local/freeside/selfservice_socket; chown freeside /usr/local/freeside/selfservice_socket; chmod 600 /usr/local/freeside/selfservice_socket
   <li>Use <a href="http://www.apache.org/docs/suexec.html">suEXEC</a> or <a href="http://www.perl.com/CPAN-local/doc/manual/html/pod/perlsec.html#Security_Bugs">setuid</a> to run signup.cgi, selfservice.cgi, agent.cgi and passwd.cgi as the freeside user.  <b>Do not run your public web server as the freeside user!</b>