In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the differences between apache version 2.2 and 2.4. the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
The similarities and differences in the settings in httpd.conf after the Windows environment is changed from Apache2.2 to Apache2.4.
1. Change the way permissions are set.
2.2using Order Deny / Allow, 2.4switching to Require
Apache2.2:
Order deny,allow
Deny from all
Apache2.4:
Require all denied
The more commonly used ones here are as follows:
Require all deniedRequire all grantedRequire host xxx.comRequire ip 192.168.1 192.168.2Require local
Note: if it is set in the htaccess file, you should also modify it.
2. Set the change of logging method
Change the RewriteLogLevel instruction to logLevel
The first value of LOGLEVEL setting is the preset level for the entire Apache, and then you can modify the logging level of this module for the specified module.
For example:
LogLevel warn rewrite: warn
3. Namevirtualhost has been removed
4. More modules need to be loaded
To enable Gzip, you need to load mod_deflate,apache2.4 in apache2.2, you need to load mod_filter and mod_deflate
To enable SSL, you need to load mod_ssl,apache2.4 in apache2.2, you need to load mod_socache_shmcb and mod_ssl
5. Recommended settings in windows environment
EnableSendfile OffEnableMMAP Off
It is recommended to set when errors such as AcceptEx failed appear in the Log log.
AcceptFilter http noneAcceptFilter https none
Description: Win32DisableAcceptEx is replaced by AcceptFilter None in apache2.4
6. Adjustment of Listen settings
Take 443 as an example, you can't just set Listen 443.
The following error occurs:
(OS 10048) you can only use one address at a time (protocol / network address / connection): AH00072: make_sock: could not bind to address [::]: 443
(OS 10048) only one address (protocol / network address / connection) can be used at a time: AH00072: make_sock: could not bind to address 0.0.0.0
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
Therefore, you need to specify the IP for listening, and you can set multiple
On the apache version 2.2 and 2.4 what are the differences to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.