LinuxQuestions.org
Help answer threads with 0 replies.
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
 
Search this Thread
Old 10-20-2003, 10:44 AM   #1
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Rep: Reputation: 0
Angry still trying to reverse proxy


I have a internal networked webcam (server built in) at IP address 192.168.0.x and I would like it to appear as a directory off my main server. So, if my main server is www.mydomain.com i would like requests for www.mydomain.com/camera to go to the internal webcam server at 192.168.0.x. Ok, so people said I should try mod_rewrite and I did this is the rule:

RewriteEngine on
RewriteBase 192.168.0.8/
RewriteRule ^/camara(.*) http://192.168.0.8/path/to/$1 [P,L]

but I get this error:
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]

What am I doing wrong? please help!

RH9 apache 2.0...
 
Old 10-20-2003, 04:37 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
RewriteBase: only valid in per-directory config files
Is sposed to be injected in a dir's .htaccess file as far as I have read mod_rewrite.html.
 
Old 10-21-2003, 08:19 AM   #3
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, so the rewrite statements go in a .htaccess file and not httpd.conf?
 
Old 10-21-2003, 10:04 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Rewrite rules can be placed in httpd.conf. I've got several systems running in this config. You may need to place them inside of the <Directory> or <VirtualHost> paragraph of the config file. You can turn up the log level with mod_rewrite to get a better understanding of what is happening.
 
Old 10-21-2003, 11:37 AM   #5
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
Ok,
will I have to create a virtual host for this to work or is that where the rules just need to be.

Last edited by wildbob; 10-22-2003 at 08:24 AM.
 
Old 10-22-2003, 01:38 AM   #6
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
Hmmm..ok now I get this error:
httpd failed. The error was: Stopping httpd: [FAILED]

Starting httpd: Syntax error on line 1041 of /etc/httpd/conf/httpd.conf:
RewriteBase: argument is not a valid URL
[FAILED]
 
Old 10-28-2003, 09:12 AM   #7
wildbob
LQ Newbie
 
Registered: Oct 2003
Distribution: red hat
Posts: 13

Original Poster
Rep: Reputation: 0
Hmmm...apache starts when I remove the rewritebase rule....but 404 error trying to get to camera
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
reverse proxy? bwall Linux - Newbie 1 11-22-2005 07:42 PM
reverse proxy with apache 2 bootiack Linux - Software 1 08-09-2005 06:47 PM
httpd reverse proxy orossi Linux - Software 0 09-23-2004 08:48 AM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 12:16 PM
apache Reverse Proxy !!!!! ashish_v Linux - Software 0 09-05-2003 04:42 PM


All times are GMT -5. The time now is 07:11 PM.

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