Take the FedoraLinux operating system as an example: 1) Add the -- enable-rewrite option when installing apache for the first time. For example. /Configure -- prefix =/usr/local/apachel -- enable-so -- enable-mod-shared = all -- enable-rewrite -- enable-cache2) add mod_proxy module # f
Take the Fedora Linux operating system as an example:
1) install apache for the first time and add the -- enable-rewrite option during compilation.
For example. /Configure -- prefix =/usr/local/apachel -- enable-so -- enable-mod-shared = all -- enable-rewrite -- enable-cache
2) added the mod_proxy module.
# Find.-name mod_proxy.c // find the mod_proxy.c file in the apache source code installation directory
# Cd PATH/to/mod_proxy.c // enter the directory containing the mod_proxy.c File
#/Usr/local/apache/bin/apxs-c mod_rewrite.c // apxs should specify the absolute path, in the bin directory where you are currently using apache
Test successful
/Usr/local/apache2/bin/apxs-c mod_proxy.c proxy_util.c
/Usr/local/apache2/bin/apxs-I-a-n proxy_module mod_proxy.la
/Usr/local/apache2/bin/apxs-c mod_proxy_http.c
/Usr/local/apache2/bin/apxs-I-a-n proxy_http_module mod_proxy_http.la
#/Usr/local/apache/bin/apxs-I-a-n mod_rewrite mod_rewrite.la
If there are no errors, compile a mod_proxy.so file in the modules directory of your apache.