Make changes to nginx config stick

Discussion in 'Installation/Configuration' started by harkman, Aug 3, 2012.

  1. harkman

    harkman New Member HowtoForge Supporter

    Hello.


    I'm new to ISPConfig and I have it running only for 24 hours now. I really like the system :)

    I did purchase the manual, but unfortunately I was not able to find the information I actually need.

    I have configured my server to run on nginx.
    I changed the ispconfig vhost configuration of nginx and later on I had to run the update script to regenerate the CSR.

    Unfortunately the update restored the original ispconfig vhost configuration.

    Now my question is, how can I modify the ispconfig vhost in a update save way?

    Any ideas anybody?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to change some settings for alls ites, then edit the vhost config template file in /usr/local/ispconfig/server/conf/. If you want to add settings for one site, then add them in the nginx directives field on the options tab of the website.

    The nginx directives field is described in the manual on page 101.
     
  3. harkman

    harkman New Member HowtoForge Supporter

    Thanks Till,

    but I want to change the vhost ISPConfig is running on.
    /etc/nginx/sites-available/ispconfig.vhost

    AFAIK there is no directives field for the ISPConfig vhost?
    And it is this config file that I want not to be changed on updates.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This file is managed by ispconfig directly, it is not intended that this file is altered manually.If you want to alter it anyway, then you might have to restore it after updates. Before you restore it you should ensure that your copy is still compatible with the new ispconfig version.
     
  5. harkman

    harkman New Member HowtoForge Supporter

    Ok. Thanks.

    I will try to add my custom configuration to a seperate server definition in a seperate file. That should be update save.

    --J├╝rgen
     

Share This Page