2011-09-20 15 views
1

所以我安裝了切諾基,並將django-cpserver安裝到我的django應用程序中。502錯誤的網關 - Django/cherrypy HTTP反向代理切諾基循環賽

此後,我跑

python manage.py runcpserver daemonize=1 port=3035 pidfile=/var/run/django/cherrypy.pid-1 threads=1 request_queue_size=0 

和重複這些命令產卵10個處理cherrypy.pid-1,cherrypy.pid-2,等等等等,cherrypy.pid-10。

在我的切諾基管理員,我再映射到這10個信息源到我的Django的實例: -

enter image description here

然而,重啓切諾基之後,它只是給了我一個502網關錯誤,看着我cherokee.error日誌,我看到一系列的錯誤,說: -

{'type': "warning", 'time': "20/09/2011 06:39:26.264", 
'title': "Taking source='localhost:3042' back on-line", 
'code': "balancer_round_robin.c:170", 
'error': "63", 'description': "The information source is being disabled.", 
'version': "1.2.99", 'compilation_date': "Sep 16 2011 00:35:11", 
'configure_args': " '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-static' '--with-wwwroot=/srv/http' '--with-wwwuser=http' '--with-wwwgroup=http' '--with-python=python2' '--enable-os-string=Arch Linux' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu' '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-static' '--with-wwwroot=/srv/http' '--with-wwwuser=http' '--with-wwwgroup=http' '--with-python=python2' '--enable-os-string=Arch Linux' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'", 
'backtrace': ""} 

我不知道我的配置有什麼問題。將感謝任何指針導致我朝着正確的方向解決這個「502網關錯誤」問題。我需要補充的是,如果我在cherokee上使用標準的scgi部署配置,那麼一切正常,但我想知道如何使用cherrypy作爲反向代理來在cherokee上部署django。)

回答

0

問題解決。指定內部IP,一切都很好!

相關問題