How to configure admin virtual directory setting?

Question: HC panel logout after new domain creation in IIS7.

Solution:
This article applies only to IIS7 Web Server.  

Issue comes where HC panel logout or session breakup after the new domain creation. To resolve this issue follow the instructions below. 

Login in HC Panel as host admin and go to My Server :: Configure Panel :: General Setting. Two options would be listing:

  1. admin.domain.com
  2. domain.com/admin  

For option 1 (admin.domain.com): 

Open IIS :: Application Pool :: HCAppPool :: properties :: Chose Mode = Classic Mode.
Recycle the HCAppPool. 

For option 2 (domain.com/admin):

Option 1 workaround does not work with domain.com/admin. To make it workable on IIS 7, set readonly attributes in the web.config file located under the path C:\Program Files\Advanced Communications\HostingController\Web\web.config on web server machine.