
24th June 2012, 16:44
|
|
Junior Member
|
|
Join Date: Jun 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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. )
|

24th June 2012, 16:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
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
|

24th June 2012, 17:05
|
|
Junior Member
|
|
Join Date: Jun 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
And how to check if it works?
|

25th June 2012, 08:37
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
When the apache config is written in the way you want it to have, then it works,. Otherwise it downt work.
|

4th July 2012, 22:46
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
In general, are the plugin files the one to customize to change ispconfig behavior like vhosts port etc?
|

5th July 2012, 09:24
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
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.
|

5th July 2012, 10:06
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
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.
|

5th July 2012, 10:08
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
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.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|

5th July 2012, 10:13
|
|
Senior Member
|
|
Join Date: Jul 2011
Location: Switzerland
Posts: 151
Thanks: 21
Thanked 44 Times in 31 Posts
|
|
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>
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 11:30.
|
Recent comments
1 day 11 hours ago
1 day 14 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 21 hours ago
2 days 13 hours ago
2 days 13 hours ago
2 days 17 hours ago