httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pct...@apache.org
Subject svn commit: r705117 - in /httpd/httpd/trunk/docs/manual/mod: mod_alias.html.en mod_alias.xml
Date Thu, 16 Oct 2008 01:48:15 GMT
Author: pctony
Date: Wed Oct 15 18:48:14 2008
New Revision: 705117

URL: http://svn.apache.org/viewvc?rev=705117&view=rev
Log:
Add example and comments when using ScriptAlias with a file.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en
    httpd/httpd/trunk/docs/manual/mod/mod_alias.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en?rev=705117&r1=705116&r2=705117&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.html.en Wed Oct 15 18:48:14 2008
@@ -379,6 +379,18 @@
       </Location>
     </code></p></div>
 
+	<p><code class="directive">ScriptAlias</code> can also be used in conjunction
with
+	a script or handler you have. For example:</p>
+	
+	<div class="example"><p><code>
+	  ScriptAlias /cgi-bin/ /web/cgi-handler.pl
+    </code></p></div>
+    
+    <p>In this scenario all files requested in <code>/cgi-bin/</code> will
be
+    handled by the file you have configured, this allows you to use your own custom 
+    handler.  You may want to use this as a wrapper for CGI so that you can add 
+    content, or some other bespoke action.</p>
+
     <div class="warning">It is safer to avoid placing CGI scripts under the
     <code class="directive"><a href="../mod/core.html#documentroot">DocumentRoot</a></code>
in order to
     avoid accidentally revealing their source code if the

Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_alias.xml?rev=705117&r1=705116&r2=705117&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.xml Wed Oct 15 18:48:14 2008
@@ -373,6 +373,18 @@
       &lt;/Location&gt;
     </example>
 
+	<p><directive>ScriptAlias</directive> can also be used in conjunction
with
+	a script or handler you have. For example:</p>
+	
+	<example>
+	  ScriptAlias /cgi-bin/ /web/cgi-handler.pl
+    </example>
+    
+    <p>In this scenario all files requested in <code>/cgi-bin/</code> will
be
+    handled by the file you have configured, this allows you to use your own custom 
+    handler.  You may want to use this as a wrapper for CGI so that you can add 
+    content, or some other bespoke action.</p>
+
     <note type="warning">It is safer to avoid placing CGI scripts under the
     <directive module="core">DocumentRoot</directive> in order to
     avoid accidentally revealing their source code if the



Mime
View raw message