Обратный прокси в IIS к локальному TomCat

Я попробовал что-то подобное, но postgresql базой данных. Я скопировал файлы данных от одной машины до другого. Затем я получил ошибку при попытке запустить сервер базы данных.

Позже, я узнал, что причиной были другие аппаратные средства. Одной машине установили 32-разрядную систему, но другой имеет 64-разрядную систему.

Проверьте свои аппаратные спецификации на обе машины. У Вас может быть что-то подобное. Кроме того, проверьте полномочия файлов/папок.

1
задан 20 December 2012 в 07:51
1 ответ

Your Action is set to Rewrite so it is rewriting the URL.

In IIS Manager:

  • Right-click Server Farms, click "Create Server Farm". Give it some name.
  • Put the fully-qualified domain name to your Tomcat instance in the "Server name or address" field
  • Click "Advanced settings...", expand "applicationRequestRouting" and change httpPort to 8087
  • Click "Yes" when prompted to create a rewrite rule
  • Click the newly created farm under "Server Farms" in the pane on the left side of the window
  • Open "Routing Rules" on the Server Farm feature view page
  • Click the "URL Rewrite..." link on the right pane
  • Remove the old attempted Tomcat rewrite rule
  • Click "Add Rule(s)..." at the top of the right pane, choose "Blank rule"
  • Give it a name
  • In the Match URL pane:
    • Requested URL: Matches the Pattern
    • Using: Regular Expressions
    • Pattern: *
  • Expand the Conditions pane, click "Add"
    • Condition input: {HTTP_HOST}
    • Check if input string: Matches the pattern
    • Pattern: b.domain2.com
    • Check Ignore Case
  • In the Action pane:
    • Тип действия: Маршрут к ферме серверов
    • Схема: http: //
    • Ферма серверов: (имя вашей фермы серверов)
    • Путь: {R: 1} ( ПРИМЕЧАНИЕ: Это может потребовать некоторой работы, но, судя по вашему примеру, это должно сработать)
  • Нажмите «Применить» на правой панели и ваш
3
ответ дан 3 December 2019 в 19:02

Теги

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