当前位置:Gxlcms > PHP教程 > PHPapach配置局域网访问问题

PHPapach配置局域网访问问题

时间:2021-07-01 10:21:17 帮助过:16人阅读

如下配置 ,就是没办法局域网访问 求大神指点
httpd.conf
Listen 8088

DocumentRoot "E:/test/"


Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted




#
# 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



httpd-vhosts.conf


ServerName 192.168.0.119:8088
DocumentRoot "e:/test/chemla/chemla/web"


回复讨论(解决方案)

节也要有
Allow from all

本机可以访问的话,是不是跟防火墙有关?你可以把服务器防火墙关掉试试


#
# 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
Order Deny,Allow
Deny from all
Allow from all

DocumentRoot "E:/test/chemla/chemla/web"

Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all

本机访问 localhost:8088 是可以访问的

人气教程排行