麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網站 > Apache > 正文

Apache 添加虛擬目錄注意事項

2024-08-27 18:28:00
字體:
來源:轉載
供稿:網友
問題:配置Apache,httpd.conf
添加虛擬目錄
<IfModule alias_module>
Alias /sww/ "C:/xampp/htdocs/test/"
</IfModule>
出現限制權限訪問,
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

需添加目錄設置
代碼如下:
<Directory "C:/xampp/htdocs/test/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

嘗試:
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"
<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.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 久久久久久久一区二区 | 亚洲第一视频在线 | 欧美一级淫片007 | 91av网址 | 午夜视| 欧美日韩高清一区二区三区 | 日本高清无遮挡 | 好吊一区二区三区 | 久久精品伊人网 | 精品国产乱码久久久久久久久 | 日日夜av | 最新一区二区三区 | 成人在线视频免费播放 | 麻豆蜜桃在线观看 | 欧美特黄特色视频 | 国产精品v片在线观看不卡 成人一区二区三区在线 | 在线视频 亚洲 | 国产一区二区在线免费观看 | 黄色网址免费在线 | 久久亚洲成人 | 9191色| 亚洲卡通动漫在线观看 | 91在线视频播放 | 久久国产一级 | 国产精品视频一区二区三区四区国 | 国产精品国产三级国产在线观看 | 97视频一二区 | 亚欧在线免费观看 | 中文字幕亚洲视频 | 99国产精品自拍 | 久草在线高清 | 天天草天天爱 | 成人午夜视频免费在线观看 | 成人毛片免费 | 国产成人精品一区二区视频免费 | 一级一级一级一级毛片 | 精品国产乱码久久久久久久 | 欧美成人综合视频 | 成人免费观看毛片 | 国产91av视频 | 日日草视频|