where to set custom vhost for Nginx?

Discussion in 'Installation/Configuration' started by skysky, Nov 16, 2020.

  1. skysky

    skysky Member

    I need to add some custom codes into vhost of each domain for Nginx in ISPconfig, Where should I add it?

    From below post that I know that it's is a good idea to edit the vhost file directly as it will be lost when making changes in ispconfig setting.
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It is like being quoted above and I previously similarly feel comfortable on creating custom-conf, copying nginx master vhost to it and modify the same so I have a custom one in my server.

    However, that may not be necessary at all if something like the following can be applied via nginx directives which can be manually added snippet in the options or selectable, if the same has been added to System > Directive Snippets:
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    The conf-custom folder is in server/conf-custom

Share This Page