Upgrade doesn't respect conf-custom directives for apps under nginx

Discussion in 'Installation/Configuration' started by mitsos, Apr 24, 2014.

  1. mitsos

    mitsos New Member

    Hi all,
    Did the recent update to and had a problem with custom settings for the apps not getting transferred to the new /etc/nginx/sites-available/apps.vhost file

    the beginning lines of /usr/local/ispconfig/server/conf-custom/nginx_apps.vhost.master:
    server {
            listen {apps_vhost_ip}{apps_vhost_port};
            ssl on;
            ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
            ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;
            # redirect to https if accessed with http
            error_page 497 https://$host:8081$request_uri;
            server_name {apps_vhost_servername};
    Those lines did not get transfered to the sites-available file. If the update was supposed to move any master settings from /usr/local/ispconfig/server/conf-custom/nginx_vhost.conf.master then those settings were correctly transfered, since the client's websites are working as expected, with all the customizations for them. Dunno why it didn't transfer it for the apps vhost though.

    Just a heads up for those running ispconfig with nginx.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The files that shall be presevred by the installer have to be in conf-custom/install/ folder. so in your case:


    the conf-custom folder exists to overwrite tempaltes of the server process and conf-custom/install/ is to overwrite templates of the installer.
  3. mitsos

    mitsos New Member

    So do I have to copy all of conf-custom to conf-custom/install for the settings to be preserved?

    Or is there any way to link the conf-custom/install to conf-custom for it to pick up the changes automatically if someone forgets to put the files where they are supposed to be?

    Wouldn't it be better if the installer respected just the conf path?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    NO, not all. only templates for the installation process have to be in conf-custom/install/. Other templates must be in conf-custom directly.

    No, as there can be files with the same name and different content. the installer and server are two different software pieces, they do not share any code or config files.
  5. mitsos

    mitsos New Member

    OK, copied nginx_apps.vhost.master and nginx_vhost.conf.master to conf-custom/install and hope I don't forget to copy them when I change them then.

Share This Page