深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 652|回复: 1
打印 上一主题 下一主题

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

[复制链接]

800

主题

1379

帖子

7708

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7708
跳转到指定楼层
楼主
发表于 2019-6-8 22:06:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 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>
复制代码
回复

使用道具 举报

228

主题

466

帖子

2184

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2184
沙发
发表于 2024-9-1 18:41:59 | 只看该作者
    # 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>

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 09:51 , Processed in 0.031246 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表