当站点从默认网站移动到IIS上自己的站点时添加绑定 [英] Add bindings when site moved from default website to its own site on IIS
问题描述
有一个网站是在IIS中使用默认网站创建的。例如,网站可通过以下方式访问: http:mysite.co.in/myapp/login.aspx
实际上,文件部署在此位置C:\inetpub \wwwroot \ myapp
现在我想将应用程序部署到Defaultwebsite作为自己的网站,如C:\inetpub \ myapp
。所以,网站网址将是http:mysite.co.in/login.aspx
问题是我们已经向许多客户发送了一个带有以下http:mysite.co.in/myapp/login.aspx
网站链接的邮件。
然后邮件链接将无法正常工作。所以,我想把两个网址都设置得很好。
我尝试过的方法:
我试图添加虚拟目录并将虚拟目录转换为应用程序
也许您可能要考虑URL重写? Scott Forsyth的博客 - IIS URL重写 - 在一个站点下托管多个域 [ ^ ]
There is a site which was created long back in IIS with in Default Website. for example site accessible through : http:mysite.co.in/myapp/login.aspx
Actually, files are deployed in this location "C:\inetpub\wwwroot\myapp"
Now I wanted to deploy the application out side the Defaultwebsite as its own site like "C:\inetpub\myapp"
. So, the site url will be "http:mysite.co.in/login.aspx"
The problem is we have sent a mail with site link as below "http:mysite.co.in/myapp/login.aspx"
to many clients.
Then mail link will not work. So, I wanted to set both url to work perfectly.
What I have tried:
I have tried to add virtual directory and converted the virtual directory as application
Perhaps you may want to consider URL Rewrites? Scott Forsyth's Blog - IIS URL Rewrite – Hosting multiple domains under one site[^]
这篇关于当站点从默认网站移动到IIS上自己的站点时添加绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!