Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Proxy for IP Camera Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
cjconrad
Newbie
Newbie


Joined: 13 February 2005
Location: United States
Online Status: Offline
Posts: 14
Posted: 12 August 2008 at 3:12pm | IP Logged Quote cjconrad

As my first issue (separate thread) is mostly in control, and it also resolved my second (unreported) issue, I am hoping to tackly my final known issue.

I have an IP camera with uses port 80 for its web server, and port 8080 for its images. Following the structure you provided for a second web site (other thread), I have the following in place for it in httpd.conf:


#Handle IP Camera
RewriteBase /
RewriteCond %{HTTP_HOST} ^camera\.site\.net$ [NC]
RewriteRule ^/?$ http://192.168.0.150 [NC,P]
RewriteBase /
RewriteCond %{HTTP_HOST} ^camera\.site\.net$ [NC]
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^(.*)$ http://192.168.0.150/$1 [NC,P]


This allows a remote user to get the the web page, but the image panel remains blank ("Loading..." shown). I realize that it is waiting for port 8080 to respond, which will never happen.

Note that I do not have any IIS site setup for responding to port 8080 ... is this part of the problem?

How can I best take care of this?

Thanks ....     Craig
Back to Top View cjconrad's Profile Search for other posts by cjconrad
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 13 August 2008 at 9:42am | IP Logged Quote Anton

Please try the following config:

RewriteBase /
RewriteCond %{HTTP_HOST} ^camera\.site\.net$ [NC]
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^(.*)$ http://192.168.0.150/$1 [NC,P]
RewriteCond %{HTTP_HOST} ^camera\.site\.net$ [NC]
RewriteRule ^(.*(?:jpg|bmp|gif))$ http://192.168.0.150:8080/$1 [NC,P]

If it doesn't work, please explain your requirements in more details.


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
cjconrad
Newbie
Newbie


Joined: 13 February 2005
Location: United States
Online Status: Offline
Posts: 14
Posted: 13 August 2008 at 12:42pm | IP Logged Quote cjconrad

Anton,

As always, thanks for your promptness! This did not help, but let me better describe the requirement:

I have IIS 6 running on Win2K3 server. My router sends ports 80 to the server. I have two "normal" web sites on IIS that ISAPI-RW now correctly supports by distinguishing the header and using Proxy (these sites use different internal ports that are not exposed to the internet).

I also have a network IP camera that is at 192.168.0.50. This camera uses port 80 for basic page support, and port 8080 for image transfer. I can get this to work from ISAPI by:

(1) An ISAPI proxy (in httpd.conf) of "name.domain.com" to 192.168.0.50 (this handles the port 80 traffic)
(2) Via the router, send all port 8080 activity to 192.168.0.50 (this handles the image transfer)
(3) I have also defined an IIS site at port 8080, but I don't think this is/was needed for the above to work.

What I want to do is to send the router's port 8080 to the server, and have ISAPI-RW proxy all activity for that camera site on port 8080 to the camera at 192.168.0.50, making ISAPI-RW the proxy for all of the camera's traffic.

Can this be done?

Thanks .....   Craig
Back to Top View cjconrad's Profile Search for other posts by cjconrad
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 14 August 2008 at 9:11am | IP Logged Quote Anton

Please try to apply the following rule instead of yours:

RewriteCond %{HTTP_HOST} ^camera\.site\.net(?:\:8080)?$ [NC]
RewriteRule ^(.*)$ http://192.168.0.50/$1 [NC,P]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
cjconrad
Newbie
Newbie


Joined: 13 February 2005
Location: United States
Online Status: Offline
Posts: 14
Posted: 14 August 2008 at 9:54am | IP Logged Quote cjconrad

Anton,

Thanks for the update. Unfortunately, this doesn't work. However, in giving it more thought, I don't mind leaving the router pointing to the camera for port 8080, and having ISAPI-RW redirect only port 80 (via the header). So, there is no need to pursue this further.

Many thanks
Back to Top View cjconrad's Profile Search for other posts by cjconrad
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum