You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by WA9ALS - John <wa...@starband.net> on 2003/10/25 22:04:23 UTC
[users@httpd] DocumentRoot Newbie
My first post - I'm sure it's been asked a thousand times, but I can't find
the answer.
I'm having the same basic problem with my understanding of Apache running on
either a Windows 2000 system or a RHL8.0 system - Please help me see what
I'm missing in the basics.
Without involving virtual hosts, what besides the DocumentRoot directive and
folder/file permissions affects what documents are served? Here's my
problem:
WINDOWS Apache - I can serve the expected files from the default C:\Program
Files\Apache Group\Apache\htdocs directory, but if I move my content to any
other folder with the same permissions, it doesn't work and I get the
error/test page.
I have the same basic problem with my Linux apache.
I have all sorts of other much harder stuff working on the Linux box, but I
can't get past this very basic thing with Apache!
T H A N K S !
- John
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] DocumentRoot Newbie
Posted by WA9ALS - John <wa...@starband.net>.
I have my answers now - I couldn't serve domain.com but I can serve
domain.com/index.html!!!!! I know how to fix that. Thanks
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] DocumentRoot Newbie
Posted by hunter <th...@sympatico.ca>.
On Sat, 2003-10-25 at 16:04, WA9ALS - John wrote:
> My first post - I'm sure it's been asked a thousand times, but I can't find
> the answer.
>
> I'm having the same basic problem with my understanding of Apache running on
> either a Windows 2000 system or a RHL8.0 system - Please help me see what
> I'm missing in the basics.
>
> Without involving virtual hosts, what besides the DocumentRoot directive and
> folder/file permissions affects what documents are served? Here's my
> problem:
>
> WINDOWS Apache - I can serve the expected files from the default C:\Program
> Files\Apache Group\Apache\htdocs directory, but if I move my content to any
> other folder with the same permissions, it doesn't work and I get the
> error/test page.
>
> I have the same basic problem with my Linux apache.
>
> I have all sorts of other much harder stuff working on the Linux box, but I
> can't get past this very basic thing with Apache!
>
> T H A N K S !
>
> - John
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
John,
This is a Windows config file and not mine ... do not use it literally I
simply wanted to grab the sections. These are the areas that I would
change if I were to move the document root. In my configurations I have
it located in a non-standard location (my application specific).
The last section here relates to default page ... important if you are
not using 'index.html' for instance.
#
# 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 "C:/Program Files/Apache Group/Apache2/htdocs"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.php index.php3 index.html index.html.var
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org