httpd.conf 需要开启的模块
● Apache的反向代理
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
● 注释的这几行用于修改网页中的网址
# LoadModule proxy_html_module modules/mod_proxy_html.so
# LoadModule xml2enc_module modules/mod_xml2enc.so
# LoadFile C:/xampp/apache/bin/zlib1.dll
# LoadFile C:/xampp/apache/bin/libapriconv-1.dll
# LoadFile C:/xampp/apache/bin/libxml2.dll
● 输出内容过滤器
LoadModule filter_module modules/mod_filter.so
LoadModule ext_filter_module modules/mod_ext_filter.so
类似的组件可能还有:mod_substitute.so、mod_sed.so、mod_line_edit.so
● 虚拟主机相关
LoadModule alias_module modules/mod_alias.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
httpd.conf 需要加载的扩展配置文件
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
# Implements a proxy/gateway for Apache.
Include "conf/extra/httpd-proxy.conf"
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>
# 添加过滤器
<IfModule mod_ext_filter.c>
Include conf/extra/httpd-filter.conf
</IfModule>