I setting up a proxy server for specific sites using a DNS server, and I am seeking guidance on handling HTTPS traffic. Here's a brief overview of my setup and the challenges I'm facing:
Objective: Create a proxy server that directs clients to view Google.com through the proxy while allowing direct access to Yahoo.com. To achieve this, I have configured my DNS server to resolve Yahoo.com to its true IP address and Google.com to my proxy server's IP address (e.g., 192.168.1.1).
Current Configuration:
DNS Server: Resolves Yahoo.com to its actual IP and Google.com to my proxy server's IP.
Proxy Server (Nginx): Successfully configured as a reverse proxy for HTTP.
Challenges: I have encountered difficulties handling HTTPS traffic through my proxy server. While I can efficiently manage HTTP requests using Nginx as a reverse proxy, I am unsure about the appropriate approach for HTTPS traffic.
Questions:
How can I extend my current Nginx configuration to effectively handle HTTPS requests through the proxy server?
Are there any security considerations or best practices I should be aware of when intercepting and proxying HTTPS traffic in this manner?
I would appreciate insights, guidance, or recommendations from the community to help overcome this challenge. Thank you in advance for your time and assistance.
Best regards