How to Set IIS 7 Host Header Receive Error? asp.net

I am trying to host a site on port 8123. It works fine, but after hosting it, I try to set its host header (DNS): when I set its host header, it does not open the application using this link.

My site name is "InspectionDesign": after it is posted, when I set its host header, I go into its binding settings and edit it:

Type    HostHeader       Port    IP Address

http    haks.design.us   8123      *

and when I use this link haks.design.us, it gets nothing.

I also tried appcmd on the terminal at this link:

http://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx

and change this command according to my needs, for example:

 appcmd set site /site.name: InspectionDesign/bindings.[protocol='http',bindingInformation='*:8123:'].bindingInformation:*:8123: haks.design.us

when i run this command i get an error "appcmd is not recognized as an internal or external command"

How can I set the host header and what errors do I make?

I hope for your suggestion.

Thanks at Advance

+4
1

, :

appcmd

cmdline/bindings.

appcmd (, -, PATH)

% SystemRoot%\system32\Inetsrv\

% systemroot%

C:\Windows

, , appcmd, :

C:\windows\system32\inetsrv\appcmd set site/site.name: InspectionDesign/bindings.[protocol='http',bindingInformation=':8123:'].binding::8123: haks.design.us

, Technet . Microsoft.

cmd:

C:\windows\system32\inetsrv\appcmd set site/site.name:InspectionDesign/+bindings.[protocol='http',bindingInformation = '*: 8123: haks.design.us']

dns, , hosts , . , , . hosts C:\Windows\System32\drivers\etc .

N.B. , iis 7.5 Windows 7

+1

All Articles