Hi all,I just switched from monit to supervisord and I love it! Very awesome tool :) After a day of work with supervisor I've done some modifications that maybe
are useful for others:
1. Use fcgi-programs in groups, i.e.: [program:apache] command=/usr/sbin/httpd -c "ErrorLog /dev/stdout" -DFOREGROUND [fcgi-program:django] command=/usr/bin/runserver.py socket=tcp://127.0.0.1:9100 [group:servers] programs=apache,django2. Before I switched to supervisord I've used nginx as a proxy to monit over SSL. Unfortunately
the supervisiord httpd doesn't support neither nested urls nor SSL.The workaround is very simple. Just make only relative redirects not absolute:
Index: http.py
===================================================================
--- http.py (revision 878)
+++ http.py (working copy)
@@ -343,7 +343,7 @@
server_url = '%s://%s' % (protocol, host)
if server_url[-1:]=='/':
server_url=server_url[:-1]
- return server_url
+ return ""
class deferring_http_channel(http_server.http_channel):
Maybe you can delete the method "get_server_url" entirely?
Cheers,
Dako
fcgi_groups.patch
Description: Binary data
_______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
