Apache映射访问缩略图和上传服务器基础配置

Apache映射访问缩略图和上传服务器基础配置

  1. 为避免修改失误,请先备份你的 Apache 配置文件 httpd.conf,该配置文件的路径是: 
    盘符:wamp64inapacheapache2.4.23confhttpd.conf 

  2. 打开 http.conf 文件,找到 DocumentRoot 为开头的那一行,将 
    DocumentRoot "${INSTALL_DIR}/www"
    改成新的 DocumentRoot 路径, DocumentRoot "D:Program Files (x86)ADENT" (这是cs端存在图片的位置)

  3. 然后找到 http.conf 文件中的如下内容 
    # This should be changed to whatever you set DocumentRoot to. 

    <Directory "${INSTALL_DIR}/www/"> 
    将 Diectory 中的路径改成你新设的文件根目录,比如: 
    <Directory " D:Program Files (x86)ADENT/">
  4. 将Include conf/extra/httpd-vhosts.conf改为#Include conf/extra/httpd-vhosts.conf

 

    1. 保存配置文件http.conf 。 重启服务访问即可;
原文地址:https://www.cnblogs.com/ZJCD/p/10148176.html