Steps to create a subdomain (ex: http://mysub.localhost) for development reasons on IIS
- Right click on the IIS and click on “add website”
- Fill all the fields and press ok ( in host name put mysub.localhost)
- under the created website open Authentication
- Edit Anonymous Authentication and check Application pool identity – Ok
- in the notepad open C:\Windows\System32\drivers\etc\hosts
- in the last line add 127.0.0.1 mysub.localhost
- save and close
if you follow the steps above you should be able to open http://mysub.localhost
if you have any other solution please post it in the comments below
happy development
great and useful post
thank you