繁体   English   中英

Apache ReserveProxy 与不需要的 IIS aspxerrorpath

[英]Apache ReserveProxy with unwanted IIS aspxerrorpath

我正在尝试使用 Apache2 从托管在 ASP.NET / ZD7EFADB60FBE7D23DFDFD4 中的 IIS 上的外部应用程序设置反向代理,它提供了一个没有网页验证的网页。

不幸的是,该网页返回带有 aspxerrorpath 重定向的 404 代码。

在我的示例中,我用愚蠢的值替换了我的值

<IfModule mod_ssl.c>
<VirtualHost *:443>
  SSLProxyEngine on
  SSLProxyVerify none
  SSLProxyCheckPeerCN off
  SSLProxyCheckPeerName off
  SSLProxyCheckPeerExpire off

  ProxyPreserveHost off
  ProxyPass / https://externalapplication.com/wait/screen/?uid=cd437bbc-1e8d-4fab-ad1f-9d5ac998d661
  ProxyPassReverse / https://externalurl.com/wait/screen/?uid=cd437bbc-1e8d-4fab-ad1f-9d5ac998d661

  ProxyRequests on

  DocumentRoot /home/duh/bro

  ServerName subdomain.domain.com
  ErrorLog /var/log/duh/error.log
  CustomLog /var/log/duh/access.log combined

   <Directory /home/duh/bro>
     Options Indexes MultiViews
      AllowOverride All
      Order deny,allow
      Allow from all
        Require all granted
  </Directory>
  AcceptPathInfo On

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/subdomain.domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/subdomain.domain.com/privkey.pem
SSLStrictSNIVHostCheck Off
</VirtualHost>
</IfModule>
  • 预期结果:

https://subdomain.domain.com -> https://subdomain.domain.com/wait/screen/?uid=cd437bbc-1e8d-4fab-ad1f-9d5ac998d661

  • 得到的结果:

https://subdomain.domain.com -> https://subdomain.domain.com/error.html?aspxerrorpath=/wait/screen/?uid=cd437bbc-1e8d-4fab-ad1f-9d5ac998d661

我完全不知道我想念什么;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM