About this question
I am using nginx with docker in the AWS ECS service. However, I got an error and I feel that the proxy path has become invalid for a server. How to fix the error?
I am using nginx with docker in the AWS ECS service. However, I got an error and I feel that the proxy path has become invalid for a server. How to fix the error?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Data Science Expert
Answered on Jul 31, 2023
If you wish to fix the host not found in upstream a resolver directive can be added to the configuration to avoid future crashes. The following code will simplify:
Server {
Listen 80;
Server_name test.com;
Location / {
Resolver 8.8.8.8
Proxy_pass
Proxy_redirect off;However, using a public DNS is risky since the DNS requests can be spoofed. Hence use a safe DNS server.
The Data Science Certification Training offered at JanBask Training provides courses similar to offline sessions, helping students attain a broad idea on the basic and advanced concepts related to Data Science. The students also get to know the ways to manage structured and unstructured data applying the intelligence to figure out substantial conclusions. JanBask Training makes you industry-ready to face the job market scenario, examining the provided data and creating proper insights from them.
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step Data Science guides from industry experts
Common Data Science interview questions, answered
Guides, tips and career advice on Data Science from JanBask experts.
Data Science The Best Data Science Projects (Beginner To Advanced)
Discover 15 data science project ideas from beginner to advanced levels. Includes tech stacks, time estimates, & real-use cases.…
Data Science Data Science vs Software Engineering - What you should know?
Compare Data Science vs. Software Engineering - explore skills, tools, roles, salaries, and career scope. Discover which tech…
Data Science Top 15 Deep Learning Algorithms You Must Know in 2025
Discover the top 15 deep learning algorithms powering AI in 2025. Learn how deep learning models, DL models, and deep machine…
Data Science Deep Learning Tutorial Guide for Beginners
Deep Learning, Machine Learning & Artificial Intelligence have become trending words of the IT sector today.