Skip to content

Apache 反向代理常用配置

当 Apache 反向代理无法正常工作时,可检查以下配置。

示例

apache
Header set Access-Control-Allow-Origin "*"
SSLProxyEngine On

ProxyPass / http://www.source-site.com/
ProxyPassReverse / http://www.source-site.com/

<Proxy *>
    Require all granted
</Proxy>

检查模块

请确认已启用:proxyproxy_httpheadersssl

bash
sudo a2enmod proxy proxy_http headers ssl
sudo systemctl reload apache2

Released under internal 12SSL documentation guidelines.