Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 - Change localhost to custom domain

How do I change so that debugging doesn't happen on localhost:randomNumber but on a custom domain like my.testsite.com:randomNumber?

I've added the domain to the hosts file and I can manually change the url when debugging from localhost to my.testsite.com, but can I make VS start at my.testsite.com from the get-go instead of localhost?

like image 351
Johan Alkstål Avatar asked Apr 27 '11 21:04

Johan Alkstål


1 Answers

Yes... you do that in the project options. You can specify a custom startup URL as well as a fixed port if you want. The built-in VS server will follow whatever you type there, then your hosts file will take care of the mappings for you.

like image 159
Mark A. Donohoe Avatar answered Oct 13 '22 11:10

Mark A. Donohoe