Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 使用ProxyPassMatch重定向aspx请求时缺少图像 服务器名mine.abc.def.edu ProxyPassMatch^(/.\.aspx.*)http://mine.abc.def.edu:8080/$1_Apache_Iis - Fatal编程技术网

Apache 使用ProxyPassMatch重定向aspx请求时缺少图像 服务器名mine.abc.def.edu ProxyPassMatch^(/.\.aspx.*)http://mine.abc.def.edu:8080/$1

Apache 使用ProxyPassMatch重定向aspx请求时缺少图像 服务器名mine.abc.def.edu ProxyPassMatch^(/.\.aspx.*)http://mine.abc.def.edu:8080/$1,apache,iis,Apache,Iis,我在端口8080上运行IIS,在端口80上运行Apache。我已经在apache配置中获得了上述内容,成功地将ASP.NET页面重定向到IIS,但页面上的图像丢失。我在想我需要某种反向代理规则,它会说“如果图像或其他资源的请求来自aspx页面,那么添加端口8080”,但我不确定如何实现这一点。您可以为IIS服务器使用不同的虚拟主机名或子目录吗?这样,您就可以在mod_代理设置中匹配主机头。我不确定是否使用其他主机名。我确实考虑过使用子目录,但这并不理想。您希望Apache或IIS提供图像和其他静

我在端口8080上运行IIS,在端口80上运行Apache。我已经在apache配置中获得了上述内容,成功地将ASP.NET页面重定向到IIS,但页面上的图像丢失。我在想我需要某种反向代理规则,它会说“如果图像或其他资源的请求来自aspx页面,那么添加端口8080”,但我不确定如何实现这一点。

您可以为IIS服务器使用不同的虚拟主机名或子目录吗?这样,您就可以在mod_代理设置中匹配主机头。

我不确定是否使用其他主机名。我确实考虑过使用子目录,但这并不理想。您希望Apache或IIS提供图像和其他静态内容吗?如果它们位于aspx页面的目录或子目录中,我希望IIS提供它们。
<VirtualHost *:80>
ServerName mine.abc.def.edu
ProxyPassMatch ^(/.*\.aspx.*) http://mine.abc.def.edu:8080/$1
</VirtualHost>