K
K
Konstantin Khairov2019-02-27 12:24:58
Nginx
Konstantin Khairov, 2019-02-27 12:24:58

How to place a domain + SSL certificate on one server and send requests to another server?

Hello. Here's the thing: there is a site with SSL on VDS and there is a server where the video is stored, the site is via HTTPS, and requests to that server are sent through the subdomain of the site s.sitename.com => ip of the server with the video
Some videos do not work due to Mixed Content . How to place SSL on VDS while redirecting requests to another video server.
s.sitename.com/asfasf/asfasf/asfasf.mp4 is processed on VDS from the beginning
Then it goes to the server with video, how to do this, is it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Khairov, 2019-02-27
@Kaylos

Thanks to everyone who helped. Figured out where I went wrong. I created a subdomain on VDS and made SSL for it, then I thought that the entire request up to the video server should go via HTTPS, I did a proxy_pass on port 443 of the video server. Then it dawned on me that SSL went and started proxying on VDS, I sent it without HTTPS, so proxy_pass had to be done not at 443, but at 80. Thank you all again for your help.

F
FJCrux, 2019-02-27
@FJCrux

1. Configure DNS: The A-record for the subdomain will be the same as for the main one.
Set up SSL in the same place, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question