LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-09-2003, 12:02 PM   #1
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Rep: Reputation: 0
Question apache reverse proxy


Hi,
I'm running apache on RH9 and need help with reverse proxy. I also have a networked web cam (built in web server on 192.x.x.x address). Let's say that my domain is xxx.yyy.zzz. I'd like requests for xxx.yyy.zzz/camera to go to the internally addressed webcam server. The Documentation that I've been able to find is confusing and I belive the proxy module names are different. Ok, so, I have apache running with only the stock installed modules and I'm not sure if the proxy modules are loaded by default. If somebody could let me know what modules need to be loaded and maybe a sample http.conf, ProxyPass setup...ReverseProxyPath setup. BTW--DSL(staticIP)-->Linux(IPMASQ)---->internal 192.168.0.x network...


THANKS,
WildBob
 
Old 10-09-2003, 01:11 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Have you looked at using mod_rewrite to do this?
 
Old 10-09-2003, 01:35 PM   #3
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
No stickman, I have not.
Being fairly new to LINUX, I am unsure of the proper approach, so I've not chosen a method yet. If there was a "linux School" I'd be on the short bus...Will mod_rewrite do the trick? If so, please point me to some docs or include some sort of sample http.conf so I can see what's going on. THANKS for the quick response!!!
 
Old 10-09-2003, 02:14 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The URL Rewriting Guide on the Apache site should give you enough examples to get you started.
 
Old 10-09-2003, 05:30 PM   #5
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
OK, Thanks.....
 
Old 10-09-2003, 07:17 PM   #6
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
Is it Dynamic Mirror that I want to use? Would this be correct:

RewriteEngine on
RewriteBase 192.168.0.8/
RewriteRule ^/(.*)$ http://x.y.z/camera$1 [P]

Remember http://x.y.z/camera is where I want people to go and the internal address is the camera.

Forgive me as I stumble through this..........

Last edited by wildbob; 10-09-2003 at 07:21 PM.
 
Old 10-10-2003, 07:46 AM   #7
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
I would use a RewriteRule similar to:
RewriteRule ^/camara(.*) http://192.168.0.8/path/to/$1 [P,L]

where ^/camara(.*) is the match condition that gets proxied to the internal address. Anything after camara (ie .*) will be filled into $1. You may need to tinker with the match condition to get the effect you want.
 
Old 10-12-2003, 03:06 PM   #8
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
Hmmm..does this go in httpd.conf? I get this error:
httpd failed. The error was: Stopping httpd: [FAILED]

Starting httpd: Syntax error on line 893 of /etc/httpd/conf/httpd.conf:
RewriteBase: only valid in per-directory config files
[FAILED]
 
Old 10-15-2003, 12:16 PM   #9
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
still having trouble...anybody...anybody..bueler?..anybody?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reverse proxy with apache 2 bootiack Linux - Software 1 08-09-2005 06:47 PM
Apache reverse proxy and cookie momilla Linux - Networking 0 07-26-2005 09:58 AM
Apache 2.0 Reverse Proxy Error Adam Shapiro Linux - Networking 0 11-29-2003 07:50 PM
Apache 2.0 Reverse Proxy Error Adam Shapiro Linux - Software 0 11-29-2003 07:47 PM
apache Reverse Proxy !!!!! ashish_v Linux - Software 0 09-05-2003 04:42 PM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration