Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th July 2012, 15:41
basz basz is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default ISPConfig default apache ports

Hi,

I've got varnish in front of apache which work fine. That is until I change some setting for that vhost within ISPconfig. The port numbers are the overwritten 80. At that point the particular site is unavailable.

My question: Does have ispconfig have a setting for this somewhere. A vhost template perhaps... I can't seem to find it...

thx a million
Reply With Quote
Sponsored Links
  #2  
Old 18th July 2012, 15:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,792
Thanks: 821
Thanked 5,338 Times in 4,188 Posts
Default

All config templates are in /usr/local/ispconfig/server/conf/ and there you find also the vhost template.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th July 2012, 16:24
basz basz is offline
Junior Member
 
Join Date: Jun 2012
Posts: 12
Thanks: 2
Thanked 1 Time in 1 Post
Default

thanks

two questions
should i modify those templates directly or should i put modifications in ./conf-custom/ which override those in ./conf/ ?

These templates use template variables. Can I change those values? Or should I hardcode them into the template?
Reply With Quote
  #4  
Old 18th July 2012, 16:56
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,792
Thanks: 821
Thanked 5,338 Times in 4,188 Posts
Default

Modifications should be saved in conf-custom. If a variable is available in the interface, then you can change it in the interface. If a variable is computed by the plugin and not available in the interface, then you have to set the value hardcoded.
__________________
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:
adamassasda291 (27th June 2013)
  #5  
Old 3rd October 2012, 16:53
neodg neodg is offline
Junior Member
 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Till!

Can you say me where i can change the standard port in den Template from 80 to 81?

My setup have nginx as frontend and apache as backend...
Reply With Quote
  #6  
Old 26th June 2013, 19:37
dolito dolito is offline
Junior Member
 
Join Date: Jun 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hey guys,

I'm not 1000% sure but I think as long as you will find code like this:

PHP Code:
                 $tmp_vhost_arr = array('ip_address' => $data['new']['ip_address'], 'ssl_enabled' => 0'port' => 80); 
in file /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1317,1358,1475,1484 and 1330,.. (for ssl)

I think you have to replace all "{tmpl_var name='port'}" with e.g. "81" in the templates. But why the vars there if ports are still hardcoded??

Would make life way much easier, if you could configure these 2 ports in the web-interface ... just a few changes ..

After I changed these (on my local test system) in the plugin-file to 81 my templates got written like I want. Without any changes in some templates.

greetz
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
amavis: (!!)WARN: all primary virus scanners failed, considering ba jariasca Installation/Configuration 13 20th April 2010 17:34
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 20:13
Ftp problems timeout reny2000 General 6 23rd December 2009 11:09
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31
Default Mail scan settings for new users timehost Installation/Configuration 3 26th October 2007 12:05


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


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