Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2012, 16:44
simplyit simplyit is offline
Junior Member
 
Join Date: Jun 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question nginx_reverseproxy_plugin.inc.php - how to activate

Hello,
I'm trying to setup ispconfig3 multiserver with nginx reverseproxy ( client<->nginx<->apache), when I was searching nginx files in ispconfig dir I found souch thing:

# find /usr/local/ispconfig | grep nginx
/usr/local/ispconfig/server/conf/nginx_apps.vhost.master
/usr/local/ispconfig/server/conf/nginx_vhost.conf.master
/usr/local/ispconfig/server/scripts/create_daily_nginx_access_logs.sh
/usr/local/ispconfig/server/plugins-available/nginx_reverseproxy_plugin.inc.php
/usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php

And my question is HOW to activate that plugin in order to make ispconfig make two .vhosts one for apache on port 82, and one for nginx on port 80 and 443 for ssl.

I need to setup it quite immediately ( my nginx + php-fpm was fast but was causing a lot of problems with sites configuration, so I need to change setup. )
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2012, 16:48
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,702
Thanks: 819
Thanked 5,319 Times in 4,172 Posts
Default

The plugin is not developed and tested anymore, so I'am not sure if it will work at all with the current ispconfig versions. If you like to try it, then activate it with:

ln -s /usr/local/ispconfig/server/plugins-available/nginx_reverseproxy_plugin.inc.php /usr/local/ispconfig/server/plugins-enabled/nginx_reverseproxy_plugin.inc.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th June 2012, 17:05
simplyit simplyit is offline
Junior Member
 
Join Date: Jun 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And how to check if it works?
Reply With Quote
  #4  
Old 25th June 2012, 08:37
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,702
Thanks: 819
Thanked 5,319 Times in 4,172 Posts
Default

When the apache config is written in the way you want it to have, then it works,. Otherwise it downt work.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 4th July 2012, 22:46
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 62 Times in 46 Posts
Default

In general, are the plugin files the one to customize to change ispconfig behavior like vhosts port etc?
Reply With Quote
  #6  
Old 5th July 2012, 09:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,702
Thanks: 819
Thanked 5,319 Times in 4,172 Posts
Default

The plugin files process all server actions. Normally you dont have to change any plugin files, instead you change the config file templates that were loaded and processed by the plugins.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 5th July 2012, 10:06
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 62 Times in 46 Posts
Default

Hi till

thanks! Hm yay, I tried it first with custom conf files, but since you have to hard-code the port their, you can't use it with SSL - so the best way is to customize the plugin file.
Reply With Quote
  #8  
Old 5th July 2012, 10:08
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,702
Thanks: 819
Thanked 5,319 Times in 4,172 Posts
Default

Wha that? You can define the ports in the tempalte for ssl and non ssl websites without having to change the plugin. Just use the template if statements to select beween ssl and non ssl ports.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
MaddinXx (5th July 2012)
  #9  
Old 5th July 2012, 10:13
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 197
Thanks: 25
Thanked 62 Times in 46 Posts
 
Default

Wasn't aware of this! Great hint & programmed!

So something like this should/does do the trick:

Code:
<tmpl_if name='ssl_enabled'>
    <VirtualHost {tmpl_var name='ip_address'}:443>
<tmpl_else> 
    <VirtualHost {tmpl_var name='ip_address'}:82>
</tmpl_if>
Reply With Quote
Reply

Bookmarks

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
[OpenFiler / HA] Heartbeat can not activate LVM volume: open file descriptors khamikaze HOWTO-Related Questions 8 2nd February 2010 15:25
LVM activate query in RHEL4 sarojt HOWTO-Related Questions 2 25th August 2008 03:49
Activate forward & autoresponder at the same time... kbdigital Installation/Configuration 1 7th June 2008 12:11
How to activate Broadcom 1505 wirless card on RHEL sean_zhang Installation/Configuration 3 13th February 2008 18:36
Activate subversion Thang General 1 26th November 2005 09:42


All times are GMT +2. The time now is 16:23.


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