Saya mengonfigurasi server apache sebagai proxy terbalik dan berfungsi dengan baik jika saya mengarahkan server backend sebagai HTTP. Itu adalah:
Saya mengonfigurasi host virtual 443 seperti:
ProxyPass /primary/store http://localhost:9763/store/
ProxyPassReverse /primary/store http://localhost:9763/store/
Disini pengguna akan mengakses server seperti https://localhost/primary/store
Dan ini berfungsi dengan baik ... Tapi saya ingin mengkonfigurasi server HTTP seperti;
ProxyPass /primary/store https://localhost:9443/store/
ProxyPassReverse /primary/store https://localhost:9443/store/
Ketika saya mengkonfigurasi seperti server apache memberikan 500 kesalahan server internal. Apa yang saya lakukan salah di sini?
Kesalahan yang saya dapatkan adalah:
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.
Dalam log kesalahan apache itu menyatakan;
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)
Bagaimana cara mengkonfigurasi server http untuk berbicara dengan server HTTPS?
sumber
SSLProxyEngine on
setelahSSLEngine on
file httpd-ssl.conf dan bekerja seperti pesona!Dalam kasus saya, server saya dikonfigurasi untuk bekerja hanya dalam mode https, dan kesalahan terjadi ketika saya mencoba mengakses mode http. Jadi berubah
http://my-service
menjadihttps://my-service
membantu.sumber