apache2.4.x version wampserver how the local PHP server makes the extranet accessible and enabled. Htaccess_linux

Source: Internet
Author: User
Tags php server

The configuration file httpd.conf has changed significantly since the 2.2 upgrade to apache2.4.x, which used to convert the deny from all to Allow from all for extranet access and now Require all Deni Ed and Require Local should be Require all granted.

. htaccess if it does not work, remove LoadModule rewrite_module modules/mod_rewrite.so the previous comment (#).

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

All requests have been rejected.

2.2 On the configuration

Order Deny,allow
Deny from all

2.4 On the configuration

Require all denied

All requests are allowed

2.2 On the configuration

Order Allow,deny
Allow from all

2.4 On the configuration

Require all granted

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

2.2 On the configuration

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

2.4 On the configuration

Require host example.org

To extranet access will Require local to Require all granted.

Frequently used:
Require all denied
Require all granted
Require host xxx.com
Require IP
192.168.1 192.168.2 Require Local

Give an example to explain

Allow ip:192.168.0.1 access only

Require all granted
Require IP 192.168.0.1

Disable 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 is allowed only.

There are many changes, you can go to the official description of the detailed look, but only the English version. The software is fickle, suggest you read the official update document in detail before upgrading, lest come to a unprepared.

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.