Nginx & Disable Hidden Files

Discussion in 'General' started by parkerj, Jan 15, 2015.

  1. parkerj

    parkerj Member HowtoForge Supporter

    ISPConfig3 automatically creates the following directive:
    Code:
    location ~ /\. {
    access_log off;
    log_not_found off;
    deny all;
    }
    However, it interferes with software that I am using which creates files that began with a period (.). I know that I cannot change this manually without it becoming undone, so is there some other directive that I can use that will allow the viewing of files that began with a period (i.e.
    .banners.549dfd0f738ab)?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can change all ispconfig configuration files in a update safe way. Simply copy the nginx vhost template from /usr/local/ispconfig/server/conf to conf-custom folder and edit tit (in your case, remove the directive that hides the dot files).
     
  3. parkerj

    parkerj Member HowtoForge Supporter

    So, once I copy over the template to conf-custom, I can update the nginx directives and it will use the custom template instead of the original one? Because once I do that it is still creating a vhost error file and it is still adding the hidden file directive.
     
  4. parkerj

    parkerj Member HowtoForge Supporter

    Never mind it is working. Thanks.
     

Share This Page