Kbase P15831: Can the ScriptAlias be defined outside of the Apache WebServ
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  05/02/2003 |
|
Status: Unverified
GOAL:
Can the ScriptAlias be defined outside of the Apache WebServer's directory?
FACT(s) (Environment):
WebSpeed 3.x
FACT(s) (Environment):
Apache
FIX:
Typically, a Messenger script file, such as wspd_cgi.sh, resides in the cgi-bin or equivalent directory that contains your Web server's scripts. When you configure your Web server, you can decide which directories can hold executable files. You can also designate whether the executable files require a specific extension (such as .cgi) or can use any extension. See your Web server documentation for details on how to configure a scripts directory and CGI programs.
Most UNIX Web servers map URLs leading with /cgi-bin to a cgi-bin subdirectory. This subdirectory is located either under or parallel to the document root directory. The cgi-bin directory typically contains only executable files. This is an appropriate location to place your Messenger script file.
Many UNIX Web servers allow CGI programs to reside in directories other than cgi-bin. However, some Web servers might require a specific extension. See your Web server documentation for more information.
Example,
WebServer is installed in i.e., '/usr2/apache'.
The ScriptAlias's physical location can point to a directory outside of the webserver's directory. This change can be defined within the httpd.conf file.
ScriptAlias /cgi-bin/ "/usr1/test/cgi-bin/" or any where else for that matter. The scripts directory has no relation to the webserver directory. As long as this information is clearly defined within the Apache configuration file, httpd.conf file, there is no problem in doing this.
FIX:
References to Written Documentation:
WebSpeed Installation and Configuration Guide, 'Where to Place the Messenger Script File'.