NGinX Folder Protection not working

Discussion in 'ISPConfig 3 Priority Support' started by mircsicz, Aug 4, 2015.

  1. mircsicz

    mircsicz New Member HowtoForge Supporter

    I'm on the latest ISPconfig version with all updates from jessie applied...
    When I go to "Sites > Web Access > Protected Folders" and "Sites > Web Access > Protected Folder Users" and setup a folder and a user it never make's it to the nginx config.

    So I added protection manually, but then I've issue's like:
    nginx: [emerg] duplicate location "/" in /etc/nginx/sites-enabled/1..
    So I can only protect subfolders!

    How can I make that work?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    For the first problem, please see here for debug instructions:

    The flder protection is only for sub folders, not for /.

    For the second problem:

    Use the


    directive in yozur custom config to merge your additional directives into the / location. examole:

    location / {###merge###
       index index.php
  3. mircsicz

    mircsicz New Member HowtoForge Supporter

    Hi Till,
    thx for your fast reply... Attached you'll find the expected debug output.

    But if it's only for subfolders why can I enter "/" to the field?

    Attached Files:

Share This Page