From owner-freebsd-ports@FreeBSD.ORG Mon Apr 18 16:54:24 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D89561065670 for ; Mon, 18 Apr 2011 16:54:24 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [95.108.130.94]) by mx1.freebsd.org (Postfix) with ESMTP id BBDC28FC08 for ; Mon, 18 Apr 2011 16:54:22 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward12.mail.yandex.net (Yandex) with ESMTP id D13D7C21B34; Mon, 18 Apr 2011 20:54:18 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1303145658; bh=bg/X1+RDejktxgHX62pIxaXeWD5VChsBtBWmjUzoNh0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=OunIewW2W7sjUPMKboHdRsWulMzFcYj8N11P3JlsdB56mbcDzjYglZ+1ZFV5rh00+ 5RrK2z6HV+EE/cMbfNvZTTzxHp4OR++e9o1yWrJiAHjcDGve7ojgvOBi1BapGKBkmG OMxd8jY+1Eyt2YLu3Dha0plFj2UFzhbnJmVBcGwU= Received: from smeshariki2. (unknown [178.76.212.172]) by smtp14.mail.yandex.net (Yandex) with ESMTPSA id 91E4119B807B; Mon, 18 Apr 2011 20:54:18 +0400 (MSD) Message-ID: <4DAC6C47.3030207@yandex.ru> Date: Mon, 18 Apr 2011 20:52:23 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.2.15) Gecko/20110306 Thunderbird/3.1.9 MIME-Version: 1.0 To: Andrea Venturoli References: <4DAC66A9.3040605@netfence.it> In-Reply-To: <4DAC66A9.3040605@netfence.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Yandex-Spam: 1 Cc: freebsd-ports@freebsd.org Subject: Re: Half OT: mod_proxy and webcam X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2011 16:54:24 -0000 18.04.2011 20:28, Andrea Venturoli пишет: > Hello. > > I've got an Axis webcam in an internal network. I'm accessing it using apache22 > as a front-end, through mod_proxy. > > Everything used to work fine until some days ago: however, since then it will > drop the connection every few seconds. The message "Lost connection to MPEG > motion stream" appears and I have to push play again. > > This is an extract from my configuration: >> >> ServerName xxxxxx.xxxxxx.xx >> >> Allow from All >> >> ProxyPass / http://yyyyyyy.yyyyyyy/ >> ProxyPassReverse / http://yyyyyyy.yyyyyyy/ >> (1) SetEnv proxy-nokeepalive 1 >> (1) SetEnv force-proxy-request-1.0 1 >> > > (1) was an hint I saw on another website, but it didn't help. > > Any suggestion? > > > I tried inetd+sysutil/socket and it works much better; however it can't coexist > on port 80 with other sites. If you need to access image only, you can use net/erlyvideo to put it into some webpage (flash player). If you need to access webcam management interface too, you can use natd port forwarding (or ssh port forwaring) or www/nginx. I never used apache's mod_proxy as frontend however. -- Regards, Ruslan