Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Plugins/Modules/Addons

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 2nd August 2012, 20:10
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 199
Thanks: 26
Thanked 63 Times in 47 Posts
Default [Plugin] nginx reverse proxy for apache2

Hi HowToForge'ers

I have now been playing a longer time with nginx and the try, putting it in front of apache2 as a reverse proxy.

In general it is not that hard, but to get it play nicely together with ISPConfig isn't so easy.

I already had two "working" variants. One of them was with a universal default nginx server, doing a DNS lookup and choosing the proxy_pass server based on it - well, I just didn't like this and it had some problems.

Secondly, I tried with nginx "vhosts" per site etc. like ISPConfig does it for apache2, but I had problems with folder protection etc. since I was trying to serve static files directly through nginx.

What I want to do now, is presenting you my last try. It's not finished yet, but it already has some working code.

I also tried to create it on a "modular" base with PHP classes (I'm not a programmer anyway) so these parts can be reused within other plugins.

So for example we have the "vhost" class which does nothing other than handle everything related with vhost files.

There is something similar with the cert class, handling ssl...

Yep, it might be the best if you would just take a look. Contributions are very welcome!

You can follow/fork etc. the repository over at GitHub: https://github.com/Rackster/ispconfi...-reverse-proxy

Note
Please see 2nd post for changelog and more details!

Last edited by MaddinXx; 3rd August 2012 at 02:16.
Reply With Quote
The Following 3 Users Say Thank You to MaddinXx For This Useful Post:
falko (3rd August 2012), pititis (6th August 2012), till (3rd August 2012)
Sponsored Links
 

Bookmarks

Tags
nginx, plugin, proxy

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NGINX reverse proxy to apache - Settings? agriz Server Operation 2 23rd January 2012 11:12
Transparent reverse squid proxy d31373 Installation/Configuration 5 22nd November 2009 20:44
Squid Reverse Proxy EricTRA HOWTO-Related Questions 0 28th July 2009 08:20
Mod_Perl Configuration Issue szise Installation/Configuration 4 28th November 2008 12:41
Apache reverse proxy with mod_proxy and 302 redirection Cloud Server Operation 6 1st March 2008 14:55


All times are GMT +2. The time now is 18:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.