home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
-
- <HTML>
-
- <HEAD>
- <TITLE>ScriptAlias Directive</TITLE>
- <META NAME="GENERATOR" CONTENT="Vermeer FrontPage 1.0">
- </HEAD>
-
- <BODY>
- <H1>ScriptAlias directive</H1>
- <HR>
- <H2>Purpose</H2>
- <P>The ScriptAlias <A HREF="../configur.htm#Directive">directive</A> creates a virtual directory on your server. Any accesses to that virtual
- directory will be satisfied by returning the output of a <A HREF="../../info/cgi/intro.htm"><I>DOS type</I> CGI server script</A> in that
- directory. </P>
- <P></P>
- <HR>
- <H2>Syntax</H2>
- <P><CODE>ScriptAlias virtual path</CODE> </P>
- <P><CODE>virtual</CODE> is the <A HREF="../admin/accessin.htm">translated location</A> of the script directory. </P>
- <P><CODE>path</CODE> is the full pathname of the directory which contains server scripts which fulfill the request. </P>
- <P>Note: You should always place a trailing / after ScriptAlias directives which reference
- directories, to prevent similar entries from conflicting with each other. </P>
- <P>Several ScriptAlias directives may appear in the configuration file. </P>
- <P></P>
- <HR>
- <H2>Example</H2>
- <P><CODE>ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/</CODE> </P>
- <P>This would cause requests such as <CODE>/cgi-bin/foo</CODE> to be satisfied by running the script
- <CODE>/usr/local/etc/httpd/cgi-bin/foo</CODE>. </P>
- <P>Thus, if someone requested <CODE>/cgi-bin/a-script</CODE>, the server would run
- <CODE>/usr/local/etc/httpd/cgi-bin/a-script</CODE> and send its output to the client. </P>
- <P><A HREF="overview.htm"><IMG SRC="../../images/back.gif" ALIGN=bottom BORDER=2 WIDTH=40 HEIGHT=40>Return to Resource Configuration File Overview</A> </P>
- <P></P>
- <HR>
- <P>Copyright (C) 1995 Vermeer Technologies, Inc. All rights reserved. </P>
- </BODY>
-
- </HTML>
-