как настроить апачский сервер, чтобы говорить с сервером бэкэнда HTTPS?

Я настроил апачский сервер как обратный прокси, и он хорошо работает, если я указываю на сервер бэкэнда как на HTTP. Это:

Я настроил виртуальный хост 443 как:

ProxyPass /primary/store http://localhost:9763/store/
ProxyPassReverse /primary/store http://localhost:9763/store/

Здесь пользователи получат доступ к серверу как https://localhost/primary/store

И это хорошо работает... Но я хочу настроить сервер HTTP как;

ProxyPass /primary/store https://localhost:9443/store/
ProxyPassReverse /primary/store https://localhost:9443/store/

То, когда я настраиваю как апачский сервер, дает 500 внутренних ошибок сервера. Что я делаю неправильно здесь?

Ошибка, которую я получаю:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

В апачском журнале ошибок это указывает;

nt: SSLProxyEngine]
[Mon Aug 04 00:03:26 2014] [error] proxy: HTTPS: failed to enable ssl support for [::1]:9443 (localhost)
[Mon Aug 04 00:03:31 2014] [error] [client ::1] SSL Proxy requested for localhost:443 but not enabled [Hint: SSLProxyEngine]
[Mon Aug 04 00:03:31 2014] [error] proxy: HTTPS: failed to enable ssl support for [::1]:9443 (localhost)
[Mon Aug 04 00:03:51 2014] [error] [client ::1] SSL Proxy requested for localhost:443 but not enabled [Hint: SSLProxyEngine]
[Mon Aug 04 00:03:51 2014] [error] proxy: HTTPS: failed to enable ssl support for [::1]:9443 (localhost)

Как настроить http сервер, чтобы говорить с сервером HTTPS?

62
задан 4 September 2017 в 13:40

1 ответ

Ваш сервер говорит Вам точно, в чем Вы нуждаетесь: [Hint: SSLProxyEngine]

необходимо добавить что директива к Вашему VirtualHost перед эти Proxy директивы:

SSLProxyEngine on
ProxyPass /primary/store https://localhost:9763/store/
ProxyPassReverse /primary/store https://localhost:9763/store/

См. документ для большего количества детали .

137
ответ дан 31 October 2019 в 13:41

Другие вопросы по тегам:

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