|
本机安装了一个windows版的apache228,端口号为8080,想更改默认的DocumentRoot,把httpd.conf中的
# 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 "D:/local"
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/local">
以及extra等目录下的httpd-vhosts.conf的
<VirtualHost *:8080>
ServerAdmin webmaster@dummy-host2.localhost
DocumentRoot "D:/local"
ServerName dummy-host2.localhost
ErrorLog "logs/dummy-host2.localhost-error.log"
CustomLog "logs/dummy-host2.localhost-access.log" common
</VirtualHost>
重启apache后默认目录还是访问D:\Program Files\Apache Software Foundation\Apache2.2\htdocs
还需要什么设置吗? |
|