Consultor Eletrônico



Kbase P97616: What is the Document Root directory on Apache and how is it important to WebSpeed installs?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/16/2004
Status: Unverified

GOAL:

What is the Document Root directory on Apache?

GOAL:

What should I enter when asked; "Select Web Server Document Root directory", during my WebSpeed installation?

FACT(s) (Environment):

WebSpeed 3.x
Apache 1.x
Apache 2.0

FIX:

All of Apache's main configuration is listed within the httpd.conf file. This file is typically found under the apache-install/conf directory.

To find out the defined Document Root directory, go under this section.

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/apache/htdocs"

During the WebSpeed install, you are asked whether you would like to "copy static HTML to docroot"?

IF NO:
If you choose to bypass this option, then you will need to manually copy the WebSpeed files or set a link/alias.

1. Manually copying files from WebSpeed install-path/webspeed to Apache's Docroot directory
2. Setting an alias and/or link can be done within the http.conf file. Setting an alias can be done like this.

Alias /webspeed31D/ "/usr1/webspeed_31d/webspeed/"

<Directory "/usr1/webspeed_31d/webspeed">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

**Notice here, I'm linking an alias name to the physical location of the $DLC/webspeed directory.

IF YES:
If you do choose to 'Copy the static HTML to docroot", then WebSpeed files will be copied from the install-path/webspeed to the directory you specify as the docroot.