Click here to Skip to main content
15,903,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to create domain and subdomain for my project locally using mvc

What I have tried:

i tried using iis but i cant get it
Posted
Updated 15-Dec-16 23:07pm

Edit your hosts file to add your domains and subdomains and map them to 127.0.0.1. In IIS configure the relevant domain or subdomain as the hostname. Once those two are done you can access your site as http://yourdomain

iis - Simulate domains locally in ASP.NET /IIS7 - Stack Overflow[^]
 
Share this answer
 
You can host your applications locally if you only need to access it internally on the network, otherwise you need to purchase a subscription for hosting space from a provider. Other part of subdomain is ASP.NET specific, you can create routing for subdomains and handle their requests as per required, routing - Is it possible to make an ASP.NET MVC route based on a subdomain? - Stack Overflow[^].

For the part being hosting the service locally read this article of mine, A simple guide to setting up home server using IIS and ASP.NET[^].
 
Share this answer
 

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