国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > Apache > 正文

Apache 添加虛擬目錄注意事項

2024-08-27 18:25:15
字體:
供稿:網(wǎng)友
問題:配置Apache,httpd.conf
添加虛擬目錄
<IfModule alias_module>
Alias /sww/ "C:/xampp/htdocs/test/"
</IfModule>
出現(xiàn)限制權(quán)限訪問,
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

需添加目錄設(shè)置
復(fù)制代碼 代碼如下:
<Directory "C:/xampp/htdocs/test/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

嘗試:
1. 將C:/xampp/htdocs/test/的/去掉,結(jié)果:無法啟動apache
2. 將C:/xampp/htdocs/test/的/改成/,結(jié)果:無法啟動apache
3. 將C:/xampp/htdocs/test/改為"D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk/",結(jié)果:無法啟動apache
4. C:/xampp/htdocs/test/文件夾有Everyone完全控制權(quán)限,給D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk加上Everyone的完全控制權(quán)限,結(jié)果:仍無法啟動apache
5. 將"D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk/"的/去掉,/sww/的/去掉,結(jié)果:成功啟動apache
結(jié)論:
最好
Alias /sww "D:/Work/Booksir/BP/Code/User_Booksir_com_cn/trunk"
<Directory "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 <Directory> section to allow access to
# the filesystem path.
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 婺源县| 屏山县| 石林| 姜堰市| 中牟县| 石家庄市| 康保县| 密山市| 东至县| 贵港市| 平罗县| 青州市| 榆中县| 沾益县| 太白县| 泸州市| 巴青县| 汝南县| 密山市| 灵寿县| 定安县| 灵石县| 琼海市| 惠水县| 孝义市| 巩义市| 凤凰县| 温州市| 四平市| 乐清市| 元江| 名山县| 垫江县| 奉新县| 新疆| 左云县| 台山市| 乌鲁木齐县| 图木舒克市| 宜昌市| 嘉定区|