Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-09-2003, 12:02 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Distribution: red hat
Posts: 13
Rep:
|
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
|
|
|
10-09-2003, 01:11 PM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
Have you looked at using mod_rewrite to do this?
|
|
|
10-09-2003, 01:35 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Distribution: red hat
Posts: 13
Original Poster
Rep:
|
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!!!
|
|
|
10-09-2003, 02:14 PM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
The URL Rewriting Guide on the Apache site should give you enough examples to get you started.
|
|
|
10-09-2003, 05:30 PM
|
#5
|
LQ Newbie
Registered: Oct 2003
Distribution: red hat
Posts: 13
Original Poster
Rep:
|
OK, Thanks.....
|
|
|
10-09-2003, 07:17 PM
|
#6
|
LQ Newbie
Registered: Oct 2003
Distribution: red hat
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
10-10-2003, 07:46 AM
|
#7
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
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.
|
|
|
10-12-2003, 03:06 PM
|
#8
|
LQ Newbie
Registered: Oct 2003
Distribution: red hat
Posts: 13
Original Poster
Rep:
|
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]
|
|
|
10-15-2003, 12:16 PM
|
#9
|
LQ Newbie
Registered: Oct 2003
Distribution: red hat
Posts: 13
Original Poster
Rep:
|
still having trouble...anybody...anybody..bueler?..anybody?
|
|
|
All times are GMT -5. The time now is 02:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|