Change location nginx

Discussion in 'General' started by Nikolay Orlov, Jan 6, 2020.

  1. Nikolay Orlov

    Nikolay Orlov New Member

    Hi, i use nextcloud via isp, and i need to change default
    location ~ /\.{
    deny all;
    }
    to this one
    location ~ /\.(?!file).* {
    deny all;
    }
    Edit vhost by hand i don't like because panel will change to default.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You should use the nginx Directives option in website settings (in ISPConfig Panel, Website and Options tab).
    Read the ISPConfig manual about this, it is in page 140.
     
  3. Nikolay Orlov

    Nikolay Orlov New Member

    I try it, but no success, but when i change conf by hand it works
     
  4. Jesse Norell

    Jesse Norell Well-Known Member

Share This Page