Reverse Proxy configuration

I need a good configuration document for a reverse proxy server in Ubuntu 16.04 LTS
Barry-f4Asked:
Who is Participating?
 
arnoldCommented:
Yes, usually or commonly, squid is used to secure a single destination.

What is  the relationship
Internet <=> reverse proxy <=> web servers?

The simple
In a way you want http://www.mydomain.com requests to end on internalserver1 while requests for http://www.myotherdomain.com to end up on internalserver2.

There are times, where the application on the internal webservers responds dynamically, meaning the URLs in the response are based on the ip (internal) ip based on the origin of the request it sees.
0
 
arnoldCommented:
Squid-cache.org has examples.
https://wiki.squid-cache.org/ConfigExamples
0
 
Barry-f4Author Commented:
I was looking at an Apache reverse proxy
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Prabhin MPEngineer-TechOPSCommented:
Hi,
Hope the following document will help you to configure HTTP reverse proxy using Apache.

https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
0
 
arnoldCommented:
Apache has a similar example, though the context under which you want it to operate is somewhat more elaborate.

Squid to function as a guard against exposing a web server behind it ..


It deals with
Proxypass
Reverseproxypass
The two deal with converting the references ......
0
 
arnoldCommented:
Here is apache's reference. https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html

If you want Apache reverse proxy to terminate the SSL connection as well...
0
 
Barry-f4Author Commented:
OK, are you saying squid is a better option?   i have have a test position that requires that 2 different URLs be redirected to two separate back end servers. Squid over Apache?
0
 
arnoldCommented:
What are your needs?
Squid can furnish.
On the squid side, it receives the request, based in the requesting URL it can forward the request.

Apache can use http://www.yourdomain.com/subsite1
             Http://www.yourdomain.com/subsite2 if configured will query the specified web servers and then reprocess the response to maintain referencing.

The link I posted and the one Prabhin provided can be used as a guide.


Squid separates the web server//s behind it from Apache can be combined to do several things.
Serve up the site, pull certain sata from a tomcat server using workers, proxy other site section, data from another web server/s transparent to the users accessing the site.

No URL changes.
0
 
Barry-f4Author Commented:
Based on what you stated, if I understand it, Squid seems to be more straight forward. It just has to process 2 URLs and direct them to the proper backend server
0
 
Barry-f4Author Commented:
Yes the simple description is what I am trying to accomplish
0
 
arnoldCommented:
Look at the config example reference for squid.
It includes multi-site......example.
0
 
Barry-f4Author Commented:
You must be psychic I am doing exactly that as we speak
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.