在Windows 2008指定端口中创build符号链接

我有一个Windows服务器2008年,我有我的网站托pipe。 我想访问以下url:

http://example.com:8400/one/two/index.html 

使用此url:

 http://example.com/site.html 

我试图创build一个像这样的符号链接

 mklink /J 'C:\inetpub\vhosts\mywebsite.com\httpdocs\site.html' 'C:\bla\bla\bla\one\two\index.html' 

该链接已创build,我可以访问它去:

 http://www.example.com/site.html 

但是它不会加载内容,我怀疑,因为内容需要使用端口8400。

任何想法如何做到这一点?

您将无法使用符号链接来路由IIS中的不同端口。 您需要使用URL重写模块和AAR(应用程序请求路由)。

这里是一个链接,让你开始。

http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing