Доступ к сайту по ip, а не по ip / имени папки IIS

570
Arvind Agrahari

У меня есть один сервер IIS.

В этом размещено 2 приложения на сайте Default.

Которые доступны по IP / Hostname:

http: // . . *. ** / AuthorizationServer

http: // . . *. ** / ClientServer

Есть ли способ получить к нему доступ по subIP.

потому что я не могу использовать символ '/' в пути.

У меня нет домена для покупки, так что помогите мне.

0
Откуда вы хотите получить доступ? Интернет? Предполагая, что вы не купили статический IP, вам нужно купить домен и сопоставить его с вашим динамическим DNS-именем. Karl Richter 7 лет назад 0

1 ответ на вопрос

1
KeyszerS

If you can't have a / in the path, then you're left with one of two options:

  1. Two websites, same IP address - but access by Hostname only
  2. Two websites, two different IP Addresses - but access by Hostname or IP address

With Option 1, you essentially create two websites - one website's path is the direct path to the AuthorizationServer, and use a "Host name" in the site binding. This is known as using Host headers to provide content based on the HTTP request made by the client. The other website of course has a similar setup, but with a different Host name.

Host Name Example

With Option 2, you also create two websites, each one with its root directory being the application - and you add an additional IP address to your web server using TCP/IP Properties in Windows. This however will mean that you cannot use DHCP on your web server. Once you've added two IP addresses, you bind each web site only to one of the IP's.

This the option what you were leaning towards in your question.

Advanced TCP/IP Settings Binding for Single Web Site

Похожие вопросы