LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-26-2012, 07:49 AM   #1
TomBodet
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Rep: Reputation: Disabled
CentOS 5 - Need a reverse proxy


I'm kind of swinging wildly at this point and need a little direction.

I have a very mixed environment as it's loaded with various contracts. I also have a limited number of public IPs.

What I'd like to do is take a single DNS entry (www.example.com) and use different URLs to be the gateway to various DMZ web and app servers. For example:

www.example.com/login - this forwards to a server for end user LDAP account maintenance
www.example.com/redmine - takes the user to our redmine server
www.example.com/contract1 - takes the user to the main web page on a server run by a specific contract
...and so on

It's a mixed bag where some target servers are HTTP or HTTPS, some are Tomcat servers so they're listening on 8080 or 8443, some are IIS based...etc.

I tried apache and kept getting mixed results. For example one URL I forwarded to google and didn't get the page images and the search itself didn't work but it still showed the proxy address, not the target address. I tried another to our LDAP login in which you actually got forwarded to the page but it was literally forwarded where the URL was now the target address. Another I tried to a Tomcat app and just never could get it to do anything, it always timed out.

Someone in the office suggested Squid but after looking at it, I don't see examples of it being used to split a single address into multiple URLs and I really don't want any caching.

Thanks for your time.
 
Old 01-26-2012, 07:52 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Nginx
 
Old 01-26-2012, 08:20 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
How about varnish for caching & reverse proxy? Varnish is using in hosting environment
https://www.varnish-cache.org/about
 
Old 01-26-2012, 08:42 AM   #4
TomBodet
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kirukan View Post
How about varnish for caching & reverse proxy? Varnish is using in hosting environment
https://www.varnish-cache.org/about
Thanks kirukan but I don't want caching I just need the reverse proxy.

I'm having a look at nginx but I think my issue is the same as Apache, I have a hard time deciphering what I need in the conf.

I see the nginx conf has a call to run any conf file in conf.d so I added my own "testproxy.conf" with the following:

server {
listen 443;
server_name login.example.local;
location /pwm {
proxy_pass https://192.168.20.22:8443;
}
}

That's me trying to get to the tomcat app, in this case just the tomcat "home" page. I've also tried just doing the google forward but I don't see how to add a specific URL on the listening side. Meaning I tried server_name login.example.local/google but startup complains about it.
 
Old 01-26-2012, 09:50 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by TomBodet
I tried apache and kept getting mixed results. For example one URL I forwarded to google and didn't get the page images and the search itself didn't work but it still showed the proxy address, not the target address. I tried another to our LDAP login in which you actually got forwarded to the page but it was literally forwarded where the URL was now the target address. Another I tried to a Tomcat app and just never could get it to do anything, it always timed out.
By (your) design, this thread is all over the place, with different reverse proxy suggestions.

If you wish to troubleshoot your Apache web server directives, then please start a thread on that, and actually post the directives (in code tags) that you've attempted.
 
Old 01-26-2012, 10:01 AM   #7
TomBodet
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anomie View Post
By (your) design, this thread is all over the place, with different reverse proxy suggestions.

If you wish to troubleshoot your Apache web server directives, then please start a thread on that, and actually post the directives (in code tags) that you've attempted.
I love when people come into threads only to dump on them.

I provided information about where I've been and what I've tried.

What other folks have been kind enough to try and answer is if there was any other things I should be looking at that might do what I need in a simpler config/package.
 
Old 01-26-2012, 10:11 AM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Maybe I didn't communicate clearly. This problem is easily solvable with Apache web server. I'd like to see your exact configurations - not "information about where [you've] been".
 
Old 01-26-2012, 11:50 AM   #9
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Quote:
Originally Posted by TomBodet View Post
I love when people come into threads only to dump on them.

I provided information about where I've been and what I've tried.

What other folks have been kind enough to try and answer is if there was any other things I should be looking at that might do what I need in a simpler config/package.
He wasn't 'dumping' on you. His suggestion to post specific configuration and errors you encounter is a very good one - people will be able to help you here. In the end of the day you have many different applications sitting behind proxy - so digging into config files is necessary. The reason why I suggested Nginx, for example, is that I would then be able to help you with configuration for some of the applications you mentioned as we use Nginx as a proxy with them ourselves. Pick a proxy (be it Apache, Nginx or something else) and then ask for help with configuring it one step at a time.

Last edited by klearview; 01-26-2012 at 03:33 PM. Reason: grammar
 
Old 01-26-2012, 12:40 PM   #10
TomBodet
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
I guess my head doesn't work like the rest of the world.

When someone says "By (your) design, this thread is all over the place, with different reverse proxy suggestions. " That sentence leads with making seem like I'm complaining about getting suggestions which I have not done.

He then continues with "If you wish to troubleshoot your Apache web server directives, then please start a thread on that, and actually post the directives (in code tags) that you've attempted." Where my problem is I'm ignorant of whether I have a tool that will do the thing I'm looking for so my thought process says, hey, let's first figure out if I need a hammer or a screwdriver! Once I get the right tool in my hand, then let's figure out how to use it.

Taking the previous response and translating it into something that would have made sense (again in my narrow world) would be, "Actually you're correct in trying to use Apache, it will do exactly what you're looking for. For the sake of tidyness, start a new thread with your config and we'll work it out."

...don't mind me, I'm overly frustrated at my ability to get something working that's apparently so inane any random idiot off the street can do it....
 
Old 01-26-2012, 03:25 PM   #11
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Look, I'll withdraw my request about a separate thread (although I think that's a cleaner approach). If you haven't abandoned this thread, and if you'd still like to give Apache web server a try, then please post the configs you have tried -- at least the snippets that are related to proxying.
 
  


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 zacetnik Linux - Newbie 2 04-18-2011 06:49 PM
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 06: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