4

I am trying to host a site on port 8123. It's working fine, but after hosting it I am trying to set its host header(DNS): when I set its host header it did not open application on that link .

My site name is "InspectionDesign": after hosting it when I set its host header I go in its binding setting and edit it:

Type    HostHeader       Port    IP Address

http    haks.design.us   8123      *

and when I use this link haks.design.us it do not get any thing.

I also tried appcmd on terminal from this link:

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

and alter this command according to my needs like:

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

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

How would i set host header and what mistakes I am doing?

Hopes for your suggestion.

Thanks in Advance

4

1 に答える 1

1

すぐに間違っていることがわかり、簡単に克服できることが 2 つあります。

appcmd が内部コマンドまたは外部コマンドとして認識されない

また、サイトの名前と /bindings コマンドライン パラメーターの間にはスペースが必要です。

appcmd は通常、次の場所にあります (明らかに PATH 環境変数の一部ではありません)。

%systemroot%\system32\inetsrv\

通常、%systemroot% は次の場所にあります。

C:\windows

コマンドを実行するには、次のように appcmd へのパスを完全に指定する必要があります。

C:\windows\system32\inetsrv\appcmd セット サイト /site.name: InspectionDesign /bindings.[protocol='http',bindingInformation=' :8123:'].bindingInformation: :8123: haks.design.us

あなたが言及したTechnetページのドキュメントが正しくないため、これはエラーになります。それに関するバグレポートをマイクロソフトに提出しました。

正しいコマンドは次のとおりです。

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

dns エントリがまだない場合は、サイトを参照する必要があるコンピューターのホスト ファイルのエントリを使用して、1 つを偽造できます。そのため、ブラウジング元のマシンでない場合は、サーバー上ではありません。hosts ファイルは C:\Windows\System32\drivers\etc にあり、拡張子はありません。

NB私は管理者であり、これは Windows 7 の iis 7.5 でテストされています

于 2013-10-09T10:10:52.470 に答える