欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP apach 配置局域网访问问题

程序员文章站 2022-05-05 21:10:38
...
如下配置 ,就是没办法局域网访问 求大神指点
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 是可以访问的