Let Nginx reverse-proxy pass real IP’s to Apache

Nginx reverse proxy SSL – Multiple backend servers

One of the great thing with an reverse proxy server is that you can have multiple
backend servers going out on the same ports and you can have all of your SSL
certificates in one place.

I have done some researching about the different proxy servers and was actually hoping that Squid
would be the end candidate for this, but i discovered squid has a higher CPU usage
vs performance.
Actually Apache should be the best regarding to this slide
but the combination of Apache and Nginx should give a really good
performance boost if Nginx is configured to served static cache.

So if Nginx isn’t already installed then now is the time


#####CentOs 7

let Nginx start on boot

Allow HTTP (port 80) and HTTPS (443)through the firewall

I made a HTTP and HTTPS configuration file so it should be an easie process to create a reverse proxy in

You will only have to change the following lines to make the reverse proxy server working

you should place the files in

and ALWAYS make a new conf for each host instead of making 1 config file for all of your hosts!

apache have the a2ensite but in ngins we have to do it a little
different, but still simple
sudo ln -s /etc/nginx/sites-available/reverseproxy /etc/nginx/sites-enabled/reverseproxy