Подтвердить что ты не робот

как настроить сервер Apache для работы с сервером HTTPS?

Я настроил Apache-сервер как обратный прокси-сервер, и он отлично работает, если я укажу сервер backend как 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/

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

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

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

Please contact the server administrator, [email protected] 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.

В журнале ошибок apache указывается;

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?

4b9b3361

Ответ 1

Ваш сервер сообщает вам, что вам нужно: [Hint: SSLProxyEngine]

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

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

Подробнее см. В документе.

Ответ 2

Можете ли вы поделиться своим файлом конфигурации, так как у меня такая же проблема.

Спасибо!!