Windows下apache虚拟目录
来源:互联网 发布:日落黄沙知乎 编辑:程序博客网 时间:2024/06/07 04:06
问题背景:一个存储文件的地方,与apache的站点在不同盘上。想通过访问页面的形式来访问存储文件的目录。
首先需要在httpd.conf创建虚拟目录:
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "C:/AppServ/www/cgi-bin/"
Alias /screenshot "F:/Screenshot"
</IfModule>
其次,需要把访问权限打开
<Directory />
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>
这么一来,就可以访问http://127.0.0.1:80/screenshot了
- Windows下apache虚拟目录
- Apache----windows下虚拟主机和虚拟目录的认识(Apache配置)
- Windows环境下Apache的安装与虚拟主机, 虚拟目录的配置
- windows上安装Apache虚拟目录设置方法
- Apache 下更改 DocumentRoot 和新建虚拟目录
- Apache 下更改 DocumentRoot 和新建虚拟目录
- Centos下配置Apache的虚拟目录
- Apache 下更改 DocumentRoot 和新建虚拟目录
- apache 下设置虚拟目录和默认页面
- apache在wamp下配置虚拟主机虚拟目录
- apache 虚拟目录
- php 在windows下配置虚拟目录
- Apache下使用Alias创建虚拟目录的问题
- Apache下使用Alias创建虚拟目录的问题
- 关于ubuntu下apache虚拟目录的设置问题
- linux下apache配置多端口对应多个虚拟目录
- window系统下 Apache配置虚拟主机和虚拟目录的方法
- 配置虚拟目录的方式(Linux下/windows下)
- Redis 复制原理及分析
- Android View,SurfaceView,GLSurfaceView的关系和区别
- 电子设计竞赛样片申请
- iptables常用命令及应用
- 决策树(六)--随机森林
- Windows下apache虚拟目录
- 前端学习资源
- wireshark中出现 No interfaces found
- 使用git-diff时如何忽略某些文件
- redis主从[master、slave]
- 识别二维码
- 阿里旅行 门票基础保障内容
- FFmpeg获取DirectShow设备数据(摄像头,录屏)
- ExpandableListView只展开一个Group