Changing the root directory in WAMP

I want to change the root directory to point the directory to the following location:

C: \ Documents and Settings \ User \ My Documents [Documents] \ wamp

I know that I need to change the apache http.conf file in the following lines

DocumentRoot "c: / Documents and Settings / User / My Documents / [Documents] /"

However, it seems that the square brackets, except for [documents], cause the display of a forbidden error:

Forbidden

You do not have access / login / permissions on this server.

Can square brackets be used in a directory tree? [documents] are named for a specific purpose, and he must remain so. Otherwise, I will need a lot of transcoding.

What are the rules for pointing to a directory tree?

Thanks in advance.

+5
source
4

( Windows- wamp), r d , httpd-vhosts.conf, :

C:\wamp\bin\apache\Apache2.2.17\conf\extra  

( c:/wamp/www , )

:

ServerAdmin webmaster@localhost  
DocumentRoot "c:/wamp/www"  
ServerName localhost  
ErrorLog "logs/localhost-error.log"  
CustomLog "logs/localhost-access.log" common  

To:

ServerAdmin webmaster@localhost
DocumentRoot "E:/wamp/www"
ServerName localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
+11

, , . , Apache .

, DocumentRoot .

+1

- , .

, DocumentRoot.

I found that allowing SYSTEM full control functions to users fixed the problem.

0
source

If you have permission problems (403 denied) and you are using new WAPMs, for example.

-wampserver2.5 s

-Apache-2.4.9

-Mysql-5.6.17

-php5.5.12-64b

you can check the httpd.conf code (ca # 240):

    AllowOverride none
    Require all denied

and change it to:

Options FollowSymLinks
    AllowOverride None
    Order deny, allow
    Deny from all

Alternatively, you can: take a look at this

0
source

All Articles