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