home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / ftpage / disk7 / scriptal.ht_ / scriptal.ht
Encoding:
Text File  |  1995-09-07  |  1.8 KB  |  41 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
  2.  
  3. <HTML>
  4.  
  5. <HEAD>
  6. <TITLE>ScriptAlias Directive</TITLE>
  7. <META NAME="GENERATOR" CONTENT="Vermeer FrontPage 1.0">
  8. </HEAD>
  9.  
  10. <BODY>
  11. <H1>ScriptAlias directive</H1>
  12. <HR>
  13. <H2>Purpose</H2>
  14. <P>The ScriptAlias <A HREF="../configur.htm#Directive">directive</A> creates a virtual directory on your server. Any accesses to that virtual 
  15. 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 
  16. directory. </P>
  17. <P></P>
  18. <HR>
  19. <H2>Syntax</H2>
  20. <P><CODE>ScriptAlias virtual path</CODE> </P>
  21. <P><CODE>virtual</CODE> is the <A HREF="../admin/accessin.htm">translated location</A> of the script directory. </P>
  22. <P><CODE>path</CODE> is the full pathname of the directory which contains server scripts which fulfill the request. </P>
  23. <P>Note: You should always place a trailing / after ScriptAlias directives which reference 
  24. directories, to prevent similar entries from conflicting with each other. </P>
  25. <P>Several ScriptAlias directives may appear in the configuration file. </P>
  26. <P></P>
  27. <HR>
  28. <H2>Example</H2>
  29. <P><CODE>ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/</CODE> </P>
  30. <P>This would cause requests such as <CODE>/cgi-bin/foo</CODE> to be satisfied by running the script 
  31. <CODE>/usr/local/etc/httpd/cgi-bin/foo</CODE>. </P>
  32. <P>Thus, if someone requested <CODE>/cgi-bin/a-script</CODE>, the server would run 
  33. <CODE>/usr/local/etc/httpd/cgi-bin/a-script</CODE> and send its output to the client. </P>
  34. <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>
  35. <P></P>
  36. <HR>
  37. <P>Copyright (C) 1995 Vermeer Technologies, Inc. All rights reserved. </P>
  38. </BODY>
  39.  
  40. </HTML>
  41.