Skip to content

Instantly share code, notes, and snippets.

@otiai10
Last active December 25, 2015 01:29
Show Gist options
  • Save otiai10/6895126 to your computer and use it in GitHub Desktop.
Save otiai10/6895126 to your computer and use it in GitHub Desktop.
502 error
	upstream tests {
		server 127.0.0.1:15501;
		server 127.0.0.1:15502;
		server 127.0.0.1:15503;
		server 127.0.0.1:15504;
		server 127.0.0.1:15505;
	}

	server {
		listen 80;
		server_name otiai10.com;
		location / {
			proxy_pass http://tests;
		}
	}
	server {
		listen 80;
		server_name log-kcwidget.oti10.com;
		location / {
			proxy_pass http://oti10.com:7777;
		}
	}
	server {
		listen 80;
		server_name ocr-kcwidget.oti10.com;
		location / {
			proxy_pass http://oti10.com:5000;
		}
	}
otiai10 % which iptables
iptables not found
otiai10 % sudo which iptables
[sudo] password for otiai10:
/sbin/iptables
otiai10 % ls -la /etc/ | grep sys
-rw-r--r--  1 root root    2632 Mar  6  2013 rsyslog.conf
drwxr-xr-x  2 root root    4096 Mar  6  2013 rsyslog.d
-rw-r--r--  1 root root    2082 May 20  2012 sysctl.conf
drwxr-xr-x  2 root root    4096 Oct  1 23:11 sysctl.d
drwxr-xr-x  3 root root    4096 Oct  1 23:11 systemd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment