我們公司用的apache2.4.24
request()->host(true) 獲取到的是127.0.0.1
apache反向代理設(shè)置
<IfModule mod_proxy.c>
ProxyRequests Off
SSLProxyEngine on
ProxyPass / http://127.0.0.1:8787/
ProxyPassReverse / http://127.0.0.1:8787/
</IfModule>
求助
找到方法了 后面附加個(gè)ProxyPreserveHost on 即可