HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to change ISPConfig 3 Default VHost Port (http://www.howtoforge.com/forums/showthread.php?t=56306)

jackl 24th February 2012 22:19

How to change ISPConfig 3 Default VHost Port
 
Hi There!

I'm installing Varnish Cache and varnish needs apache vhost to listen to the port is was assigned to, in my case port 8000. I copied ispconfig vhost.conf.master to conf-custom but the port has this:
{tmpl_var name='port'}
I assumed that ISPConfig3 GUI has this setting under webserver settings but there is no field for VHost Port, I only see Apps VHost Port.

Is there any other part of ISPConfig3 GUI that hides apache vhost port? If no, is it safe to just change:
{tmpl_var name='port'}
to
8000
Thanks!

falko 25th February 2012 11:23

Quote:

Originally Posted by jackl (Post 274217)
If no, is it safe to just change:
{tmpl_var name='port'}
to
8000
Thanks!

That should work.

scarleo 15th September 2013 10:44

Doesn't work if you have SSL enabled for the site in question as this will also modify the SSL VirtualHost port from 443 to 8000. I really think we should have a setting for this in ispconfig3 interface. If there already is one I would be very happy if someone could point me to where it is.

EDIT: This works if you have SSL for the site, just in case someone else is looking for a solution. Not really sure abt the tmpl syntax so it might be a bit redundant, but it works ;) :

<tmpl_loop name="vhosts">
<tmpl_if name='port' op='==' value='80'>
<VirtualHost {tmpl_var name='ip_address'}:8000>
</tmpl_else>
<tmpl_if name='port' op='==' value='443'>
<VirtualHost {tmpl_var name='ip_address'}:443>
</tmpl_if>
</tmpl_if>


All times are GMT +2. The time now is 11:17.

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