NGinX Folder Protection not working

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

  1. mircsicz

    mircsicz New Member

    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:

    https://www.howtoforge.com/community/threads/please-read-before-posting.58408/

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

    For the second problem:

    Use the

    ####merge###

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

    Code:
    location / {###merge###
       index index.php
    }
     
  3. mircsicz

    mircsicz New Member

    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