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)
-   -   Varnish in front of Apache on ISPConfig 3.0.4 (http://www.howtoforge.com/forums/showthread.php?t=55776)

jdenoy 16th January 2012 19:06

Varnish in front of Apache on ISPConfig 3.0.4
 
Hello,

I'm looking for a way to change the default port from 80 to some other ports in the apache configuration to install varnish in front of it.

I'm seen how to change the configuration for nginx, but nothing for apache (or at least didn't find it).

Anyone have an idea on where I can find this?

Thanks,

Johan

till 16th January 2012 19:20

See config file templates in /usr/local/ispconfig/server/conf/ if you like to edit the apache vhost file defaults.

jdenoy 16th January 2012 19:42

Hello Till,

in fact i saw the vhost.conf.master file, but It was talking about a variable named 'port'. I was more looking into modifying this value et modifying the vhosts files already created to reflect the modifications done.

Do you know where this value is to be changed?

Thks,

till 16th January 2012 20:00

The port variable is coded fixed in the apache plugin, but you dont have to change any code to use custom ports. Just replace this line in the template:

Code:

<VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}>
with e.g.:

Code:

<tmpl_if name='ssl_enabled'>
<VirtualHost {tmpl_var name='ip_address'}:1234>
<tmpl_else>
<VirtualHost {tmpl_var name='ip_address'}:12345>
</tmpl_if>

where 1234 is your new ssl port and 12345 is your new non ssl port.

jdenoy 16th January 2012 20:29

thks a lot

jaypabs 23rd July 2013 19:32

Quote:

Originally Posted by till (Post 271590)
The port variable is coded fixed in the apache plugin, but you dont have to change any code to use custom ports. Just replace this line in the template:

Code:

<VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}>
with e.g.:

Code:

<tmpl_if name='ssl_enabled'>
<VirtualHost {tmpl_var name='ip_address'}:1234>
<tmpl_else>
<VirtualHost {tmpl_var name='ip_address'}:12345>
</tmpl_if>

where 1234 is your new ssl port and 12345 is your new non ssl port.

May I know what file to edit? Is it apache_ispconfig.conf.master or vhost.conf.master?

till 23rd July 2013 19:33

Thats the vhost.conf.master file.

jaypabs 23rd July 2013 20:01

Quote:

Originally Posted by till (Post 300192)
Thats the vhost.conf.master file.

Thanks.

Do I need to change all variables:

tmpl_var name='port'

to:

tmpl_var name='8080'?


All times are GMT +2. The time now is 13:26.

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