ISPConfig default apache ports

Discussion in 'Tips/Tricks/Mods' started by basz, Jul 18, 2012.

  1. basz

    basz New Member


    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
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    All config templates are in /usr/local/ispconfig/server/conf/ and there you find also the vhost template.
  3. basz

    basz New Member


    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?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  5. neodg

    neodg New Member

    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...
  6. dolito

    dolito New Member

    Hey guys,

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

                     $tmp_vhost_arr = array('ip_address' => $data['new']['ip_address'], 'ssl_enabled' => 0'port' => 80);
    in file /usr/local/ispconfig/server/plugins-available/ 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.


Share This Page