深圳全飞鸿

标题: httpd.conf添加Maps,以tools目录为例 [打印本页]

作者: zhgc    时间: 2019-6-8 22:06
标题: httpd.conf添加Maps,以tools目录为例
本帖最后由 zhgc 于 2019-6-8 22:08 编辑

httpd.conf添加Maps,以tools目录为例

  1.     #
  2.     # Alias: Maps web paths into filesystem paths and is used to
  3.     # access content that does not live under the DocumentRoot.
  4.     # Example:
  5.     # Alias /webpath /full/filesystem/path
  6.         Alias /tools/ "F:/tools.syant/"
复制代码


  1. <Directory "c:/Apache24/cgi-bin">
  2.     AllowOverride None
  3.     Options None
  4.     Require all granted
  5. </Directory>
  6. <Directory "F:/tools.syant">
  7.     Options Indexes FollowSymLinks
  8.     AllowOverride None
  9.     Require all granted
  10. </Directory>
复制代码

作者: syant    时间: 2024-9-1 18:41
    # Alias /webpath /full/filesystem/path
    Alias /label/ "C:/sfcftp/sfis_label/"    <--注意路径最后的/一定要有,不然不生效
       

<Directory "c:/Apache24/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>
<Directory "C:/sfcftp/sfis_label">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>






欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2