Apache映射访问缩略图和上传服务器基础配置
- 为避免修改失误,请先备份你的 Apache 配置文件 httpd.conf,该配置文件的路径是:
盘符:\wamp64\bin\apache\apache2.4.23\conf\httpd.conf
- 打开 http.conf 文件,找到 DocumentRoot 为开头的那一行,将
DocumentRoot "${INSTALL_DIR}/www"
改成新的 DocumentRoot 路径, DocumentRoot "D:\Program Files (x86)\ADENT" (这是cs端存在图片的位置)
- 然后找到 http.conf 文件中的如下内容
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "${INSTALL_DIR}/www/">
将 Diectory 中的路径改成你新设的文件根目录,比如:
<Directory " D:\Program Files (x86)\ADENT/"> - 将Include conf/extra/httpd-vhosts.conf改为#Include conf/extra/httpd-vhosts.conf
- 保存配置文件http.conf 。 重启服务访问即可;