Page 1 of 1

Apache Upstream Error

Posted: Tue Jun 02, 2015 4:05 pm
by armyboylegend
I found this error in apache/domain logs while integrating with vetsa with boxbilling.. had same error while integrating WHMCS.. m using Ubuntu 12.04 32-bit.

Code: Select all

2015/06/01 17:57:56 [error] 5384#0: *1 upstream prematurely closed connection while reading response header from upstream, client: xx.xx.xx.xx, server: xxxxxxxx.com, request: "GET /manager/index.php/api/admin/order/activate?id=2 HTTP/1.1", upstream: "http://xx.xx.xx.xx:8080/manager/index.php/api/admin/order/activate?id=2", host: "www.xxxxxxx.com", referrer: "http://www.xxxxxxxxx.com/manager/bb-admin.php/order/manage/2"
i feel like this is wronge which is using server ip as upstream

Code: Select all

upstream: "http://xx.xx.xx.xx:8080/manager/index.php/api/admin/order/activate?id=2
when i add this link in browser it times out
it should be like this with domain.com

Code: Select all

upstream: "http://xxxxxxx.com:8080/manager/index.php/api/admin/order/activate?id=2
when i add this link to brower it says

Code: Select all

{"result":null,"error":{"message":"Invalid request. Make sure request origin is http:\/\/www.xxxxxxxx.com\/manager\/","code":1004}}
that means apache is not using correct link for upstream

thanks much for your help

Re: Apache Upstream Error

Posted: Wed Jun 03, 2015 7:45 am
by skurudo
Try different Boxbilling module - viewtopic.php?f=18&t=8474
Author on this forum and there is support for module. Other modules have no actual support (I think).

Re: Apache Upstream Error

Posted: Wed Jun 03, 2015 8:38 am
by armyboylegend
skurudo wrote:Try different Boxbilling module - viewtopic.php?f=18&t=8474
Author on this forum and there is support for module. Other modules have no actual support (I think).
Its not the module issue.. i am already using latest module V2.. error clearly says there upstream server issue, i had same error with whmcs too. I have reinstalled both whmcs and boxbilling with fresh OS on ubuntu and centos but both gave same error.. error says that it tries to connect to ip not domain. I tried to find the config for upstream server so that if i could make any change if i can but couldnt. Kindly guide. Thanks a lot