1
Reading Time: < 1 minute
I’m running a docker container on port 5000. And I use nginx outside the container without using docker options. Now, it’s fine when I access using IP but when I tried to access via my domain name I is not working. On some site I seen that when using I need to add root but, while using it’s not an option right?
worker_connections 1024;
}
http{
server {
listen 80;
server_name <my-instance-ip-here>;
location / {
root /;
proxy_pass http://0.0.0.0:5000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}```
1
Could you share nginx
access.log
to see if requests has reached the upstream service? Also what is the result ofnginx -t
?3 mins ago
|