LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-21-2008, 02:48 PM   #1
coopea
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Redirecting apache2 http requests to internal ip


I have a apache2 server that is setup for external http requests. The server has server virtual hosts running on it.
www.mywebsite.com
vhost1.mywebsite.com
vhost2.mywebsite.com

I want to redirect external traffic from vhost2.mywebsite.com to an internal apache2 server 192.168.1.68. I have tried:

<VirutalHost *:80>
ServerName vhost2.mywebsite.com
RewriteEngine On
RewriteRule ^(.*)$ http://192.168.1.68$1 [P]
</VirtualHost>

But i keep on getting 403 forbidden. Is there something else I can try?
 
Old 09-21-2008, 02:59 PM   #2
coopea
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Nevermind. I just got it working with proxies. Im not sure how secure it is but i did this instead:

<VirutalHost *:80>
ServerName vhost2.mywebsite.com
ProxyPass / http://192.168.1.68/
ProxyPassReverse / http://192.168.1.68/
ProxyPreserveHost On
</VirtualHost>
 
  


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
redirecting https web page to http internal website baboow Linux - Server 2 12-17-2007 08:27 AM
automating http requests Murdock1979 Programming 5 12-03-2007 09:14 AM
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 03:48 PM
redirecting http server xowl Linux - Networking 3 06-18-2005 04:25 AM
Help! (I'm getting flooded with http requests) rknoesel Mandriva 6 11-14-2004 05:57 PM


All times are GMT -5. The time now is 09:28 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