PHPapach LAN access configuration-php Tutorial

Source: Internet
Author: User
PHPapach configuration LAN access problems are as follows:
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:
# 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/web"


Reply to discussion (solution)

You must also have
Allow from all

Is access from the local machine related to the firewall? You can turn off the server firewall.


#
# Possible values for the Options directive are "None", "All ",
# Or any combination:
# 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/web"

Options FollowSymLinks
AllowOverride None
Order deny, allow
Allow from all

Access from the local machine to localhost: 8088 is accessible.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.