外网访问XAMPP失败 解决方案
2016-01-22 14:34
501 查看
xampp 访问出现New XAMPP security concept 收藏
New XAMPP security concept:Access to the requested directory is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.
解决办法:
打开httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)
找到以下内容
# New XAMPP security concept
#
<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”>
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
81.196.40.94/32
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
将Deny from all这一行注释掉,即
#Deny from all
注:需要重启apache[/opt/lampp/lampp restartapache]
相关文章推荐
- Maven实战(六)依赖
- Maven的多环境配置(简略版,待完善)
- listview按item的时间排序
- 日本IT工作有感
- C#中为什么不能再方法里定义静态变量(Static)
- git的基本使用
- CodeForces 620A Professor GukiZ's Robot
- 实体框架Entity Framework 4.1快速入门
- Android SDK Manager 更新代理配置
- Codeforces Educational Codeforces Round 5
- windows 命令行 杀掉 指定名称的 进程
- Android 处理滑动冲突的时候遇到的问题Invalid pointerId=-1 in onTouchEvent
- 2016宁波国际文具创意设计大赛——“演绎 Deduce”
- Python判断语句中‘is’和‘==’的区别
- 超全!整理常用的iOS第三方资源
- ZOJ1049-I Think I Need a Houseboat
- MCAdvertiserAssistant
- GROUP BY后使用ROLLUP子句总结
- 使用sync-request和cheerio写爬虫
- PostgreSQL黑科技大集会