apache2.4.x version wampserver local PHP server How to let the external network access and enable. htaccess

Source: Internet
Author: User

Http://www.jb51.net/article/61193.htm

————————————————————————————————————————————

This article mainly describes the apache2.4.x version of the Wampserver local PHP server How to let the external network access and enable. htaccess, the friend you need can refer to

Apache upgrade from 2.2 to apache2.4.x after the configuration file httpd.conf the Setup method has changed a lot, previously was to change the deny from all to allow the all to implement extranet access, now is the Require all Deni Both Ed and Require local should be Require all granted.

htaccess if it does not work, LoadModule Rewrite_module modules/mod_rewrite.so the previous comment (#) will be removed.

Here's a look at the changes in Apache2.4: (Official English note)

All requests have been rejected.

Configuration on the 2.2

Order Deny,allow
Deny from all

Configuration on the 2.4

Require all denied

All requests are allowed.

Configuration on the 2.2

Order Allow,deny
Allow from all

Configuration on the 2.4

Require all granted

All hosts in the domain can access example, and access to all other extranet hosts is denied

Configuration on the 2.2

Order Deny,allow
Deny from all
Allow from example.org

Configuration on the 2.4

Require host example.org

To make the extranet access will Require local to Require all granted.

?
123456 经常会用到的:Require all deniedRequire all grantedRequire host xxx.comRequire ip 192.168.1 192.168.2Require local

Examples Show

Allow only ip:192.168.0.1 access

Require all granted
Require IP 192.168.0.1

Prohibit ip:192.168.0.1 access only

Require all granted
Require not IP 192.168.0.1

Allow All Access

Require all granted

Deny All Access

Require all denied

The default is Require local access only.

There are many changes, you can go to the official description of the detailed look, but only the English version. Software is changeable, we recommend that you read the official update before upgrading the document, in order to avoid a surprise.

apache2.4.x version wampserver local PHP server How to let the external network access and enable. htaccess

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.