Questions tagged «gateway»

2
代理(nginx)显示网关错误
我有运行的服务(docker注册表),port 5000已经安装了nginx来将http请求从重定向8080到5000。如果我进行卷曲,localhost:5000则可以,但是当我进行卷曲时,localhost:8080会收到错误的网关错误。 Nginx配置文件: upstream docker-registry { server localhost:5000; } server { listen 8080; server_name registry.mydomain.com; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 0; chunked_transfer_encoding on; location / { proxy_pass http://docker-registry; } location /_ping { auth_basic off; proxy_pass http://docker-registry; } location /v1/_ping { auth_basic off; proxy_pass http://docker-registry; } } 在/var/log/nginx/error.log我有: [crit] …
18 proxy  nginx  gateway 

2
是否可以有多个默认网关用于出站连接?
我想在同一子网中有多个NIC(eth0和wlan0),如果其中一个NIC出现故障,可以用作主机上应用程序的备份。因此,我创建了一个附加的路由表。这是怎样/etc/network/interfaces的外观: iface eth0 inet static address 192.168.178.2 netmask 255.255.255.0 dns-nameserver 8.8.8.8 8.8.4.4 post-up ip route add 192.168.178.0/24 dev eth0 src 192.168.178.2 post-up ip route add default via 192.168.178.1 dev eth0 post-up ip rule add from 192.168.178.2/32 post-up ip rule add to 192.168.178.2/32 iface wlan0 inet static wpa-conf /etc/wpa_supplicant.conf wireless-essid xyz …

4
如何设置默认网关
我正在尝试使用ifconfig在嵌入式Linux上配置网络接口: ifconfig eth0 192.168.0.101 netmask 255.255.255.0 但我不知道如何将默认网关添加为ifconfig参数, 有任何想法吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.