I was following the nginx,uwsgi with flask & docker tutorial. My nginx config file contains:
server {
listen 5000;
server_name 19X.X.X.X;
client_header_buffer_size 5M;
large_client_header_buffers 4 5M;
client_max_body_size 75M;
location / {
include uwsgi_params;
uwsgi_pass flask:8080;
}
}
Here I want to add an additional IP address like 123.345.67.8 and a subdomain test.mydomain.com. How can I add there?
EDIT 2:
server {
listen 1.1.1.1:5000 default_server;
server_name localhost;
client_header_buffer_size 5M;
large_client_header_buffers 4 5M;
client_max_body_size 75M;
location / {
include uwsgi_params;
uwsgi_pass flask:8080;
}
}
server {
listen 2.2.2.2:5000 default_server;
server_name test.mydomain.com;
client_header_buffer_size 5M;
large_client_header_buffers 4 5M;
client_max_body_size 75M;
location / {
include uwsgi_params;
uwsgi_pass flask:8080;
}
}