Creating a New Virtual Directory (for Windows Version of Apache)

Article Number:01026

This section explains the virtual directory of Windows Version of Apache, taking Office 7 as an example.
The "virtual directory" in Apache is defined as Script Alias (CGI executable directory) in the Apache configuration file "httpd.conf".

When you install Office 7, the installer displays the initial status of the installation directory in "Installation identifier settings" and "CGI directory settings".

The "(CGI directory)/(installation identifier)" is the initial status of the installation directory.

When you install Office 7 to a location that is different from the default directory that is displayed in the installer, the specified directory must be set as "Script Alias" in "httpd.conf".

Example: Configure the installation directory, the access URL, and the alias name and the access URL as follows

  • Installation directory: C:/Program Files/Apache Software Foundation/Apache2.2/scripts/
  • Access URL: http://(server name)/scripts/cbag/ag.exe?
  • Alias: scripts
  • Access permissions for the "scripts" folder: Execute without Read

Add the following lines to "httpd.conf".
ScriptAlias /scripts/ "C:/Program Files/Apache Software Foundation/Apache2.2/scripts/"

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/scripts">
  AllowOverride None
  Options ExecCGI
  Order allow,deny
  Allow from all
</Directory>
# ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
######################################
ScriptAlias /scripts/ "C:/Program Files/Apache Software Foundation/Apache2.2/scripts/"
######################################

          :
          :
          :

# <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">;
# AllowOverride None
# Options None
# Order allow,deny
# Allow from all
# </Directory> ######################################
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/scripts">
 AllowOverride None
 Options ExecCGI
 Order allow,deny
 Allow from all
</Directory>
######################################

The settings you have changed are applied after you restart Apache.
As described above, the directory that has been set as "Script Alias" in "httpd.conf" can be specified as the installation destination during the installation ("Installation identifier settings" and "CGI directory settings").