2016/07/07 Wamp in apache2.4.9 allow external access to the configuration focus is the version version different configuration effect is different

Source: Internet
Author: User

Wamp installed in the installation package can only use 127.0.0.1来 access, if we want to set up a number of sites or other like 192.168.1.1 this need to be modified, the steps are as follows.

wamp-apache2.4.9 Allow external access configuration, apache2.2 Configuring extranet access is a bit different from apache2.4.9

apache2.2 Configuration method:

Open the httpd.conf configuration file under the Apache directory, find the keyword: "Deny from", you will find a "deny from" under a line "Allow from 127.0.0.1″, and then change 127.0.0.1 to all, that is," Allow by all "that allows anyone to access, restart the Apache service to allow extranet access."

apache2.4.9 Configuration method:

Open it.. \wamp\bin\apache\apache2.4.9\conf\httpd.conf configuration file,

The code is as follows Copy Code
<directory "c:/wamp/www/" >
AllowOverride All
Require all granted #添加允许外部访问
#
# Controls who can get stuff from the this server.
#
# onlineoffline Tag–don ' t remove
# Require Local #注释请求本机访问, comment out this line
</Directory>

Find the Require local words, preceded by the # number, representing the comment, and then reboot the server to be able to

2016/07/07 Wamp in apache2.4.9 allow external access to the configuration focus is the version version different configuration effect is different

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.