DocumentRoot \

时间:2023-03-10 00:36:39
DocumentRoot \

w  有无\的区别。

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

hosts

 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>