LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-14-2010, 02:53 PM   #1
natern
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Rep: Reputation: 0
Reverse Proxy to a subdomain using IP


Hey everyone,
I've got a RHEL 5.0 server hosting a number of websites. We want to move our staging sites off of our live servers and do our development on a Mac OS X Server 10.5 in our office. However, we want to set up a reverse proxy on one of our servers (the RHEL 5.0 mentioned) to handle password protection on our proxied development sites and prevent unwanted traffic from reaching our office network. So we've got ourselves a dedicated IP for our office and can connect to our office server directly using its IP.

My question is, how can I specify in the proxy settings on our RHEL server which virtualhost on our office server I want to request? My guesses are either with the ProxyPreserveHost On, ServerName dev1.office, or <Proxy website_name.office_server> instead of <Proxy *>
but none of these seemed to have worked, or at least the combination that I used didn't work.

In case this isn't clear, consider this example:
Our office server has for simplicity, 2 sites "dev1.office" and "dev2.office" set up as virtual hosts.
On our remote server, I want dev1.ourcompany.com to be a reverse proxy for dev1.office and dev2.ourcompany.com to be a reverse proxy for dev2.office. However, dev1.office and dev2.office are just local names on our server, there is no DNS associated with it, we have to be able to request these virtual hosts through its IP. (If this is possible)

Thank you very much for any help with this!
Nathan

Last edited by natern; 05-14-2010 at 03:46 PM.
 
Old 05-15-2010, 01:14 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi Nathan,

I have a similar setup using Squid; reverse proxy with authentication against our domain and redirecting all http to https. I don't know what you are using as proxy but if it can come in handy I have no problem posting my config for Squid. I don't know if you can set it up directly using IP but you can 'fool' the programs by putting a domain (like my.connection.com) in your hosts file. If resolv is set up using files first and next DNS then you could connect using names instead of IP (that's how I did my testing with Squid).

Kind regards,

Eric
 
  


Reply



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 config help redsnapperke Linux - Newbie 1 10-06-2009 03:36 AM
Reverse Proxy??? jantman Linux - Server 2 12-07-2007 06:01 PM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM
reverse proxy? bwall Linux - Newbie 1 11-22-2005 07:42 PM
still trying to reverse proxy wildbob Linux - Networking 6 10-28-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration