LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-04-2012, 09:08 AM   #1
secondhandman
Member
 
Registered: May 2012
Posts: 60

Rep: Reputation: Disabled
Ubuntu-Server Reverse Proxy


I was wondering if anyone knew where to find a tutorial on how to set up a reverse proxy in Ubuntu-Server with Apache2 already installed.

I've been messing with it for about two days and haven't had much luck getting it to work.

What I want to do is make it so that when someone connects to my Ubuntu Server, the server well pass the request to an external web server. Right now I am at a test site setting up the front end server to deploy at a later date, but I want to proxy from the test site to a server that is setup at the official site that has a Public IP address. I am currently behind a Private Network at the test site... is this possible?

Any help would be greatly appreciated!
Thanks
 
Old 05-04-2012, 10:52 AM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Is the someone connecting inside the LAN or connecting from the outside? If they are inside the lan, then you should be able to proxy with nginx.

If the someone is connecting from the outside and you want to proxy the request, I'd use a router outside the firewall. If you are in a hosted situation, then the host should do it for you. If you control everything, I'd stick a router in front of the firewall device. If your firewall device is running Linux, it can route for you. Not a 'best practices' moment, but it will do the job.

Last edited by mpapet; 05-04-2012 at 11:02 AM.
 
Old 05-04-2012, 11:04 AM   #3
secondhandman
Member
 
Registered: May 2012
Posts: 60

Original Poster
Rep: Reputation: Disabled
Right now I have a LAMP Ubuntu-Server, a very simple setup. Routing requests is exactly what I need to do. It's a small network where security and load are not a big concern. Still having trouble setting it up correctly though. One Server in the DMZ passing requests to a few other servers. There is only one up and running at the remote site atm.

Thanks for the reply!
 
Old 05-04-2012, 11:10 AM   #4
secondhandman
Member
 
Registered: May 2012
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mpapet View Post
Is the someone connecting inside the LAN or connecting from the outside? If they are inside the lan, then you should be able to proxy with nginx.

If the someone is connecting from the outside and you want to proxy the request, I'd use a router outside the firewall. If you are in a hosted situation, then the host should do it for you. If you control everything, I'd stick a router in front of the firewall device. If your firewall device is running Linux, it can route for you. Not a 'best practices' moment, but it will do the job.
I'm not apart of the LAN that I need to proxy to at the moment. I'm not allowed to do any configurations on the Cisco router (student), yet they're letting me do pretty much everything else.. which I find odd. I could ask them about the router config, but these people are far away from the site (over 3 hour drive) and are not likely to give me the passwords.

Thanks!!
 
Old 05-04-2012, 11:12 AM   #5
secondhandman
Member
 
Registered: May 2012
Posts: 60

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mpapet View Post
Is the someone connecting inside the LAN or connecting from the outside? If they are inside the lan, then you should be able to proxy with nginx.

If the someone is connecting from the outside and you want to proxy the request, I'd use a router outside the firewall. If you are in a hosted situation, then the host should do it for you. If you control everything, I'd stick a router in front of the firewall device. If your firewall device is running Linux, it can route for you. Not a 'best practices' moment, but it will do the job.
Currently inside, the Server has a private IP but it well be changed to a public address when we move from the test site.
 
Old 05-04-2012, 11:23 AM   #6
secondhandman
Member
 
Registered: May 2012
Posts: 60

Original Poster
Rep: Reputation: Disabled
I'm on a different network (test site), so I'm going to set up another server that will take the place of the server at the remote site for now. Hopefully I can get it to work!! Bit of a noob, sorry!
 
  


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
Squid reverse proxy server aminia2004 Linux - Server 5 07-22-2011 02:47 AM
reverse proxy for smtp/pop server? zogthegreat Linux - Server 1 10-18-2009 12:59 PM
Using Apache Server and Pound as a Reverse Proxy swamprat Linux - Software 0 12-17-2008 04:12 PM
Reverse Proxy server issue maxy7710 Linux - Newbie 0 07-21-2008 02:33 AM
ssl.conf on a reverse proxy server depdiver Linux - Security 0 01-17-2005 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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