By somum
I was following the nginx,uwsgi with flask 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 and additional IP address like 123.345.67.8 and a subdomain test.mydomain.com. How can I add there
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @somum
Here’s an article that discusses what you wish to accomplish
Understanding the concept of virtual host blocks in Nginx will help you with setting up the above and more different setups.
Hello,
Indeed as already mentioned, the best way to go is to use Nginx server blocks.
There is no need to add additional IP addresses.
Here is a quick step by step video on how to host multiple Docker containers with Nginx and Nginx server blocks:
Even if you are not using Docker, the concept would be the same.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.