• Home
  • Jobs
  • Courses
  • Teachers
  • For business
  • Blog
  • ES/EN

0

9
Views
Is it possible to redirect https request to http endpoint?

I need to test an application. It is a microservice which uses other APIs. To test it in isolation I want to use mock servers. The problem is that I can't configure the application under test to send requests to http mock server. It sends request using https protocol and port 443 only.However, there is no https-app running on that port. But it is possible to specify a proxy server. I tried to configure apache to run as an https proxy server. This server uses a self-signed certificate for localhost domain. But redirection does not works for https requests. However, http requests get redirected succesfully if I run proxy server in http mode. Here is the configiration for the proxy server:

<VirtualHost localhost:8098>
        ProxyRequests Off
        SSLEngine On

        ProxyPass        / http://localhost:3001
        ProxyPassReverse / http://localhost:3001

        SSLCertificateFile localhost.crt
        SSLCertificateKeyFile localhost.key
</VirtualHost>```
16 days ago ·

Santiago Trujillo

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.