Hi,
I run nginx on both the proxy server and the internal vm.
I looked at the nginx log and it appears under access.log and returns a 404.
I gave this
location /b/monitor {
proxy_pass http://127.0.0.1:9008;
proxy_redirect default;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
and when i access http://example.com/b/monitor it gave me
Error response
Error code 404.
Message: Not Found.
I checked the port is listening
$ netstat -lnptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN
-
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN
-
tcp 0 0 0.0.0.0:53357 0.0.0.0:* LISTEN
-
tcp 0 0 0.0.0.0:6543 0.0.0.0:* LISTEN
22004/python
tcp 0 0 0.0.0.0:36495 0.0.0.0:* LISTEN
-
tcp 0 0 0.0.0.0:9008 0.0.0.0:* LISTEN
-
The last one is supervisord
Here is my conf.
>
> [include]
> files = /etc/supervisor/conf.d/*.conf
> [unix_http_server]
> file=/tmp/supervisor.sock ; (the path to the socket file)
> [supervisord]
> logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
> logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default
> 50MB)
> logfile_backups=10 ; (num of main logfile rotation
> backups;default 10)
> loglevel=info ; (log level;default info; others:
> debug,warn,trace)
> pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default
> supervisord.pid)
> nodaemon=false ; (start in foreground if true;default false)
> minfds=1024 ; (min. avail startup file
> descriptors;default 1024)
> minprocs=200 ; (min. avail process descriptors;default 200)
>
> ; the below section must remain in the config file for RPC
> ; (supervisorctl/web interface) to work, additional interfaces may be
> ; added by defining them in separate rpcinterface: sections
> [rpcinterface:supervisor]
> supervisor.rpcinterface_factory =
> supervisor.rpcinterface:make_main_rpcinterface
> [supervisorctl]
> ;serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix
> socket
> serverurl=http://127.0.0.1:9008
> ;prompt=mysupervisor ; cmd line prompt (default "supervisor")
> ;history_file=~/.sc_history ; use readline history if available
>
> [inet_http_server]
> port=*:9008
>
>
I can access 127.0.0.1:9008 via curl. Any one notice anything that could
prevent me from seeing it through the proxy?
Thanks!
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users