V
V
Valery Gaidar2015-04-01 21:17:24
Nginx
Valery Gaidar, 2015-04-01 21:17:24

nginx. How to set up an https connection on a virtual machine if requests for it go through the gateway (nginx also processes requests on the gateway)?

Hello. I have a question about solving the following problem:
1) There is a gateway (nginx is installed on it). There is the following configuration:

server {
server_name example.com;
location \ {
proxy_pass 192.168.1.2 ;
}
}

2) There is a virtual machine on which 6 Django servers work in the nginx + uwsgi bundle (in fact, this information (about Django) does not concern the issue). Requests come through the above gateway. There is the following configuration:
server {
listen 80;
server_name example.com;
...
location / {
uwsgi_pass socket location here ;
}
}

The essence of the problem is that you need to set up an https connection.
On my local computer, I set it up according to this tutorial , on the production server, due to the presence of a gateway, this did not work.

If someone has encountered a similar problem or has not encountered it, but knows how to solve it, please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
polozad, 2015-04-02
@boo_v2

What's the problem with configuring nginx to https on the gateway itself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question