博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apache 配置虚拟目录
阅读量:7033 次
发布时间:2019-06-28

本文共 386 字,大约阅读时间需要 1 分钟。

hot3.png

找到httpd.conf文件

找到<IfModule alias_module>...</IfModule>

在里面添加如下代码

Alias /mytest/ "D:/WorkSpace/PHP/"

这句话假设你用/mytest/访问该目录,该目录的文件在D:/WorkSpace/PHP/目录下。

<Directory "D:/WorkSpace/PHP/">

Options FollowSymLinks ExecCGI Indexes
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>

这是赋予这个目录的访问权限

保存,重启apache,输入 就可访问你文件中的文件了

转载于:https://my.oschina.net/lirongfei/blog/98272

你可能感兴趣的文章
MoinMoin wiki 服务器搭建 与尝试
查看>>
线程wait()和sleep()的区别
查看>>
wordpress伪静态的原理
查看>>
Error saving your changes: Description control characters are not allowed
查看>>
wordpress向一个页面POST数据,出现404页面访问不了
查看>>
C++ Exercises(八)
查看>>
CodeSmith模板引擎系列一
查看>>
[CareerCup] 8.9 An In-memory File System 内存文件系统
查看>>
[Spark][Python][DataFrame][SQL]Spark对DataFrame直接执行SQL处理的例子
查看>>
9.2. Private key generation
查看>>
24.2. CentOS 安装
查看>>
命令行和ant脚本的参数传递
查看>>
【案例学习】最大锁具制造商怎样使用 Docker?
查看>>
5.5. date and time
查看>>
js获取height和width总结
查看>>
C8051F340 USB Fn hacking
查看>>
超级简单:如何列出目录下所有文件的超链接
查看>>
Intellij IDEA的下载和使用(针对学生的免费使用计划)
查看>>
ExplorerControls的显示问题
查看>>
第 134 章 Open Source Distributed Computing
查看>>