In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to add proxy module after installing apache, the article is very detailed, has certain reference value, interested friends must read it!
Foreword:
After installing apache, some required modules were missing. You need to add modules to apache manually.
Let's take the proxy module as an example to introduce the following addition method.
1. Apache 2.2.3 Directory
My Apache 2.2.3 installation is located in/usr/local/apache. Apache source directory/usr/local/httpd-2.2.3.
2. Add proxy module
To add mod_proxy modules to a running apache, navigate to the modules/proxy directory in the apache source code. Then use apxs to compile and install:
(1) Add mod_proxy.so
/usr/local/apache/bin/apxs -i -c -a mod_proxy.c proxy_util.c After successful installation, the mod_proxy.so file will be generated in the apache modules directory, and a line will be added to httpd.conf:LoadModule proxy_modules/mod_proxy.so mod_proxy.c error message: httpd: Syntax error on line19of/usr/local/apache/conf/httpd.conf: Cannot not load/usr/local/apache/modules/mod_proxy.so into server: /usr/local/apache/module
apxs -i -a -c mod_proxy.c proxy_util.c Problem solved. Because proxy_util.c is the base module, it must be installed first. The higher authorities have ordered the middle peasants to increase their numbers, so this problem will not arise.
(2) Add mod_proxy_http.so
/usr/local/apache/bin/apxs -i -c -a mod_proxy_http.c proxy_util.c After successful installation, mod_proxy.so file will be generated under apache modules directory and added to httpd.conf LoadModule proxy_http_module modules/mod_proxy_http.so
(3) Add mod_proxy_ajp.so
/usr/local/apache/bin/apxs -c -i -a mod_proxy_ajp.c ajp*.c Note that ajp*c must be added, these things are related to mod_proxy_ajp.c, otherwise an error will be reported: httpd: Syntax error on line 60 of /usr/local/apache/conf/httpd.conf: Cannot load/usr/local/apache/modules/mod_proxy.so into server: /usr/local/apache/modules/mod_proxy.so: undefined symbol: ajp_send_header
(Learn video sharing: php video tutorial)
Restart Apache.
/usr/local/apache/bin/apachectl start
apxs option description:
-c Perform compilation operations
-i install operation, install one or more dynamic shared objects into the modules directory of the server
-a Automatically adds a LoadModule line to the httpd.conf file to activate this module, or enables it if this line exists
-A is similar to-a, but it adds a pound prefix (#) to the LoadModule line.
-e requires editing and can be used with the-a and-A options, similar to-i, modifying the httpd.conf file without installing this module.
The above is "how to add proxy module after installing apache" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.