apache代理IIS

  SetEnv force-proxy-request-1.0.1
  SetEnv proxy-nokeepalive 1

 

有区分大小写,避免拒绝访问

 

<VirtualHost *:80>
  ServerName localhost
  ServerAlias localhost
  DocumentRoot "${INSTALL_DIR}/www"

  SetEnv force-proxy-request-1.0.1
  SetEnv proxy-nokeepalive 1

  ProxyRequests off
  ProxyPreserveHost on

  ProxyPass /ZhuoYang/  http://localhost:8800/ZhuoYang/
  ProxyPassReverse /ZhuoYang/  http://localhost:8800/ZhuoYang/
  ProxyPass /Zhuoyang/  http://localhost:8800/ZhuoYang/
  ProxyPassReverse /Zhuoyang/  http://localhost:8800/ZhuoYang/

  <Directory "${INSTALL_DIR}/www/">
    Options -Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

 

posted @ 2021-11-12 13:40  欣欣点灯  阅读(95)  评论(0编辑  收藏  举报