Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
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.
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.
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".
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
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....
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.