vwampserver2.5-apache2.4.9允许外部访问的配置
2015-12-16 11:14
746 查看
打开..\wamp\bin\apache\apache2.4.9\conf\httpd.conf配置文件,
<Directory "c:/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
Require all granted #添加允许外部访问
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don‘t remove
# Require local #注释请求本机访问
</Directory>
重启服务,再访问下就可以了。
例如:(以下我改好的)
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 />
AllowOverride all
# Require all denied
Require all granted
</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
# Require local
</Directory>
<Directory "c:/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
Require all granted #添加允许外部访问
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don‘t remove
# Require local #注释请求本机访问
</Directory>
重启服务,再访问下就可以了。
例如:(以下我改好的)
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 />
AllowOverride all
# Require all denied
Require all granted
</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
# Require local
</Directory>
相关文章推荐
- django在ubuntu下apache中部署
- apache 提示You don't have permission to access /test.php on this server.解决
- 在xampp中的Apache配置虚拟主机
- Apache 安全设置(持续记录)
- Apache ab 压力测试出现 Failed requests
- 关于开源项目中 Apache 开源协议的一些介绍
- Apache2.2.17源码编译安装以及配置虚拟主机
- Failure to transfer org.apache.maven.plugins
- 老李分享:apache日志分析及系统cpu,内存,负载情况监控 2
- 老李分享:apache日志分析及系统cpu,内存,负载情况监控
- Centos7 系统下怎么更改apache默认网站目录
- Linux下Apache+Mysql+PHP的环境搭建
- apache 403错
- apache2部署多个django项目
- 利用.htaccess, 启用Apache的简单密码验证
- Django+wsgi+Apache+Ubuntu 部署相关
- 将apache添加至windows服务
- 【转】开源性能测试工具 - Apache ab 介绍
- 解决org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource
- LAMP环境安装与apache配置