您好,我尝试在 Apache 代理中设置标头 JSON。我需要这个来测试网站登录。下面我放了我的 apache 配置。
<VirtualHost *:80>
ServerName zx.xxxxxxx.xxxxxx.fr
ServerAdmin [email protected]
AddDefaultCharset utf-8
AddType 'application/json; charset=UTF-8' .json
SSLProxyEngine On
RequestHeader set Host "xxxxxxx.xxxxxx.fr"
ProxyPreserveHost On
ProxyPass / https://11.111.111.111/
ProxyPassReverse / https://11.111.111.111/
LogLevel warn
ErrorLog /var/log/httpd/zx.xxxxxxx.xxxxxx.fr.log
CustomLog /var/log/httpd/zx.xxxxxxx.xxxxxx.fr.log combined
</VirtualHost>
如果我犯了错误,请给我一些建议。
问候 Mick