Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted

1 solution

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!
 
Share this answer
 
Comments
MikeRox89 5-Jul-14 8:47am    
Thanks for the information. I was hoping there was a way I could do it.

Can you please tell me if there is a way I can change the hostname from 'localhost' to my custom page name.
abhijeetgupta1988 8-Jul-14 3:39am    
You may need to configure the "applicationhost.config"
For me its located at "C:\Users\username\Documents\IISExpress\config"
But I'm not sure if you can do this.
Anyways if you got the solution then please share.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900