wampserver部署笔记 设置apache使得外网可以访问
来源:互联网 发布:手机淘宝如何评价 编辑:程序博客网 时间:2024/06/12 01:43
在sourcefroge上下载了wampserver安装了后,本机可以访问,局域网其他机器无法访问
在 Windows2008系统下,由于系统安全限制的问题,80端口是封闭的,所以我们自己搭建的 Apache 或者 IIS 服务器在局域网中,别人的机器无法访问到。
现打开80端口:
在 控制面板 > 系统和安全 > Windows防火墙中 左侧点击 高级设置
点击左侧 入站规则,然后点击右侧的 新建规则,然后在弹出的入站规则向导中依次是
规则类型:端口
协议和端口我们选的是 TCP 协议和 特定本地端口(例:80)
操作:允许连接
何时应用规则中选中所有(域、公用、专用)
输入名称和描述
点击完成,就OK了。
经过以上设置,同局域网的其他计算机已经可以用你的IP地址访问你搭建的服务器了。
但是新的问题又出来了,外部计算机浏览器中显示为403错误。Forbidden You don't have permission to access / on this server.
这个又是目录访问权限的问题,打开httpd.conf文件
修改含有wamp/www段附近如下允许所有访问
DocumentRoot "d:/wamp/www/"## Each directory to which Apache has access can be configured with respect# to which services and features are allowed and/or disabled in that# directory (and its subdirectories). ## First, we configure the "default" to be a very restrictive set of # features. #<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow# Deny from all Allow from all#允许所有访问 Satisfy all</Directory>## Note that from this point forward you must specifically allow# particular features to be enabled - so if something's not working as# you might expect, make sure that you have specifically enabled it# below.#<Directory "d:/wamp/www/"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. ## onlineoffline tag - don't remove Allow from all</Directory>
0 0
- wampserver部署笔记 设置apache使得外网可以访问
- wampserver搭建站点 允许外网访问的设置方法
- 笔记:mysql权限设置为外网可以访问。
- WampServer 允许外网访问
- Apache设置外网访问
- 让apache虚拟目录外网可以访问
- WampServer 2.5设置外网访问/局域网手机访问(403 Forbidden错误解决方法)
- WampServer 2.5设置外网访问/局域网手机访问(403 Forbidden错误解决方法)
- CentOS7下搭建nginx反向代理服务器使得外网可以二级域名访问内网应用
- wampserver怎么设置外网可访问
- 配置apache 使得局域网内的其他电脑可以访问的简单方法
- 设置linux 可以访问外网
- 本地设置外网可以访问
- WAMPServer的外网访问的问题
- wampserver 允许外网访问配置
- wampserver(php+apache+mysql) 服务器部署
- 部署apache让局域网和外网都可以访问
- WampServer可以访问IP,但无法访问localhost
- 3.UIImageView基本使用
- SVN提交强制加入注释
- unity中解析excel导出的txt文件
- Unity 存储目录
- mysql常用字符串函数
- wampserver部署笔记 设置apache使得外网可以访问
- python小点心--set
- 信息检索问题的一个例子 An example information retrieval problem
- Linux文件共享
- HDOJ 2014 青年歌手大奖赛_评委会打分(sort的使用)
- 背包九讲
- 一个android项目所常用的开源库
- android中的tween动画(也叫view动画)原理以及使用详解
- 导致InvocationTargetException的一个原因