Apache添加虚拟目录注意事项

问题:配置Apache,httpd.conf
添加虚拟目录

Alias /sww/ "C:/xampp/htdocs/test/"

出现限制权限访问,
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
2011/8/26 17:36:49成都机柜租用
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1

需添加目录设置

冷水江网站制作公司哪家好,找创新互联公司!从网页设计、网站建设、微信开发、APP开发、响应式网站等网站项目制作,到程序开发,运营维护。创新互联公司公司2013年成立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联公司

复制代码代码如下:


AllowOverride None
Options None
Order allow,deny
Allow from all

尝试:
1. 将C:/xampp/htdocs/test/的/去掉,结果:无法启动apache
2. 将C:/xampp/htdocs/test/的/改成\,结果:无法启动apache
3. 将C:/xampp/htdocs/test/改为"D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk/",结果:无法启动apache
4. C:/xampp/htdocs/test/文件夹有Everyone完全控制权限,给D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk加上Everyone的完全控制权限,结果:仍无法启动apache
5. 将"D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk/"的/去掉,/sww/的/去掉,结果:成功启动apache
结论:
最好
Alias /sww "D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk"

后面都不要加/,都不要使用\,这样比较保险
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a section to allow access to
# the filesystem path.


网页名称:Apache添加虚拟目录注意事项
当前网址:http://bzwzjz.com/article/dsdji.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 重庆网站建设 成都品牌网站建设 成都定制网站建设 成都网站建设 网站制作报价 成都网站制作 成都网站制作 高端网站设计 营销型网站建设 手机网站制作 成都网站制作 梓潼网站设计 高端定制网站设计 网站建设 成都网站制作 移动网站建设 重庆网站制作 成都网站制作公司 网站建设方案 网站建设 重庆企业网站建设 外贸网站设计方案