DocumentRoot \

w  有无\的区别。

 

https://httpd.apache.org/docs/2.4/vhosts/examples.html

 

hosts

1 127.0.0.1   w.w

 

 httpd.conf

ServerName  w.w

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
DocumentRoot  "D:\WWW\new\tx\ci\cicode"
<Directory />
    Options +Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

 

posted @ 2017-01-23 18:11  papering  阅读(130)  评论(0编辑  收藏  举报