Wampserver: How to Set access within the LAN, wampserver LAN

Source: Internet
Author: User

Wampserver: How to Set access within the LAN, wampserver LAN

I have just installed wampserver. My Version is WampServer Version 2.5

The Apache version is 2.4.9.


If no special configuration is available, localhost, local ip address, or 127.0.0.1 can be used on the pc. However, if you access it on another pc or mobile phone (intranet wifi, 192.168.x.x is used.

Http://www.mamicode.com/info-detail-247002.html


I found some information and set it in the above information. I found that wampserver is not running at all, so it must be something wrong with the modification.

The exclusion method is used to remove the Chinese part from the comment.

Finally, the configuration I modified is as follows:


<Directory "D:/wamp/www/">
#
# 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
Require all granted

# Controls who can get stuff from this server.
#


# Onlineoffline tag-don't remove
Require local
</Directory>


The red part is the added content.

After the test, the content on the local server can be accessed through 192.168.x.x on the mobile phone.




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.