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 16th January 2012, 20:06
jdenoy jdenoy is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2012, 20:20
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,745
Thanks: 840
Thanked 5,598 Times in 4,409 Posts
Default

See config file templates in /usr/local/ispconfig/server/conf/ if you like to edit the apache vhost file defaults.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 16th January 2012, 20:42
jdenoy jdenoy is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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,
Reply With Quote
  #4  
Old 16th January 2012, 21:00
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,745
Thanks: 840
Thanked 5,598 Times in 4,409 Posts
Default

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.
__________________
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:
jdenoy (16th January 2012)
  #5  
Old 16th January 2012, 21:29
jdenoy jdenoy is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

thks a lot
Reply With Quote
  #6  
Old 23rd July 2013, 20:32
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
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?
Reply With Quote
  #7  
Old 23rd July 2013, 20:33
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,745
Thanks: 840
Thanked 5,598 Times in 4,409 Posts
Default

Thats the vhost.conf.master file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 23rd July 2013, 21:01
jaypabs jaypabs is offline
Member
 
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Quote:
Originally Posted by till View Post
Thats the vhost.conf.master file.
Thanks.

Do I need to change all variables:

tmpl_var name='port'

to:

tmpl_var name='8080'?
Reply With Quote
Reply

Bookmarks

Tags
apache, ispconfig, varnish

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
Control Panel - E-mail Tab is empty domi-nik General 15 14th April 2011 19:17
Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi LinuxOnMyMac HOWTO-Related Questions 11 16th October 2010 05:29
ISPconfig and apache on centos 5.5 Hamra Installation/Configuration 4 9th October 2010 02:16
Nginx Catch-All Host As Front End To Apache For ISPConfig 3 On Debian Lenny fatmaddin2000 HOWTO-Related Questions 1 27th June 2010 22:52
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58


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


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