DocumentRoot "${INSTALL_DIR}/www" <Directory "${INSTALL_DIR}/www/">
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/"> 怎么办
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/"> 怎么办
2018-05-05
先找到httpd-vhosts.conf,修改DocumentRoot和Directory,如下:
D:\wampserver\bin\apache\apache2.4.37\conf\extra //一般httpd-vhosts.conf 的路径
# DocumentRoot "${INSTALL_DIR}/www" //默认的路径
DocumentRoot "d:/Demo" //自定义,根据你自己设的目录
# <Directory "${INSTALL_DIR}/www/"> //同上
<Directory "d:/Demo"> //同上
然后修改httpd.config,同理把默认的注释掉,改成自定义的就行了
#DocumentRoot "${INSTALL_DIR}/www"
DocumentRoot "d:/Demo"
#<Directory "${INSTALL_DIR}/www/">
<Directory "d:/Demo">
举报