在VS开发服务器中运行时如何更改主机名 [英] How to change the hostname while running in VS development server
本文介绍了在VS开发服务器中运行时如何更改主机名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更改在Visual Studio 2010中开发的Web应用程序的主机名.
当我运行应用程序时,主机名显示如下:
http://localhost:800/Default.aspx
我想将此网址设置为:
https://mywebsite.com/Default.aspx
请提出一种我可以更改此方法的方法.
我正在尝试使用HTTPS以及要更改的URL名称.
谢谢.
Hi,
I am trying to change the hostname of a web-application that I developed in Visual Studio 2010.
When I run the application the hostname is displayed like :
http://localhost:800/Default.aspx
I want to make this URL like:
https://mywebsite.com/Default.aspx
Please suggest a way in which I can change this.
I am trying to use HTTPS and also the URL name to be changed.
Thanks.
推荐答案
嗨
您不能在Visual Studio Development Server中使用Https.
但是您可以将HTTPS用于IISExpress中托管的站点,并且可以通过VS进行调试.
请按照此 链接 [
Hi
You can not use Https in Visual Studio Development Server.
But you can use HTTPS for site hosted in IISExpress and can be debugged through VS.
Please follow this link[^]
the above link explains how to enable HTTPS in IISExpress and debug through VS.
Hope it helps!
这篇关于在VS开发服务器中运行时如何更改主机名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文