Answer the question
In order to leave comments, you need to log in
How to use an external IP address in a Docker container with Nginx?
Hello, I will ask for help in setting up listening on a specific IP address in the Nginx configuration.
nginx.conf :
server {
listen 91.218.229.77:80;
server_name example.com;
}
nginx_1 | nginx: [emerg] bind() to 91.218.229.77:80 failed (99: Address not available)
DEVICE=eth1:4
BOOTPROTO=static
ONBOOT=yes
IPADDR=91.218.229.77
NETMASK=255.255.254.0
eth1:4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 91.218.229.77 netmask 255.255.254.0 broadcast 91.218.229.255
ether 00:25:90:56:b6:7e txqueuelen 1000 (Ethernet)
device interrupt 16 memory 0xfb900000-fb920000
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question