c# - Test subdomain on localhost -
i want test subdomain features in asp.net site. read edit hosts file , add 127.0.0.1 subdomain.domain.com , should work.
but mine seems not. have flushed dns, restarted, tried new browsers , still error 500.
when normal run asp.net site visual studio goes http://localhost:17365/ . how ip address this?
i guess don't whole picture , missing pieces.
i ran netstat -n , see site running on[::1]:17365 maybe thats why not working under ipv4?
in visual studio when go run site first change in website properties > use dynamic portstofalse, set port numberto80, run it.
it default launch http://localhost:80, in browser visit subdomain.domain.com in browser point debugging instance of site (assuming you've still got 127.0.0.1 subdomain.domain.com in hosts file).
Comments
Post a Comment