|
Posted by shimmyshack on 05/06/07 12:18
On May 4, 9:51 pm, "news.prolog.net" <kone...@ptd.net> wrote:
> Hi:
>
> I am running wamp5 on vista (I know, I must be crazy, but...).
>
> I installed the program with the default document root, www on my c: drive.
>
> Now I want to change the document root to a directory on my p: drive.
>
> I edit and change the entries in my httpd.config file and start and stop the
> server.
>
> I change the entries in the two spots in the file section below
>
> ...
> #
> # If your host doesn't have a registered DNS name, enter its IP address
> here.
> #
> ServerName localhost:80
>
> #
> # 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:/wamp/www""
>
> #
> # 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
> Order deny,allow
> Deny from all
> Satisfy all
> </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:/wamp/www"">
> #
> # 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.2/mod/core.html#options
> # for more information.
> ...
>
> But even after I change the two entries above, start and stop wamp, the
> document root still is set to www.
>
> Anyone have any ideas, thanx
>
> Dan
> (experienced programmer, new to php)
>
> but
are your changes actually taking place, do you have permission to edit
the httpd.conf file. I have seen a case recently where it was a
permissions problem, the httpd.conf was not changing. Of course you
must restart the server as well after the change.
Navigation:
[Reply to this message]
|