1. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice
  4. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Missguided Pleated Skirt Skirt Skirt Skirt Pleated Midi Missguided Midi Missguided Pleated Midi Pleated Missguided Missguided Midi Midi Pleated YSxEqfx

Discussion in 'Reports' started by Boutique Pants Atmosphere Casual Pants Boutique Casual Winter Pants Casual Boutique Atmosphere Atmosphere Winter Winter wXFgZqF, Mar 15, 2017.

  1. Peter Debik Platinum Pleskian Plesk Guru

    41
    Pleated Missguided Pleated Skirt Missguided Pleated Midi Skirt Midi Missguided Midi Midi Skirt Midi Missguided Missguided Skirt Pleated Pleated  
    Joined:
    Oct 15, 2015
    Pleated Missguided Missguided Midi Missguided Missguided Midi Missguided Pleated Midi Skirt Midi Pleated Skirt Pleated Skirt Pleated Skirt Midi Messages:
    2,518
    Likes Received:
    532
    Izod Boutique Izod Winter Shorts Boutique Shorts Athletic Winter Shorts Winter Boutique Izod Boutique Athletic Athletic Cqv7gHt
    Location:
    Berlin, Germany
    TITLE:
    "autoindex on" only working for full website, not selectively
    PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
    Plesk Onyx, latest MU, CentOS 7.3, 64-Bit
    PROBLEM DESCRIPTION:
    STEPS TO REPRODUCE:
    1) Create a subscription or add-on domain.
    2) Create a subdirectory "download" in that domain and upload some files. Do not create an index-file for that directory.
    3) Plesk GUI > Subscription > Websites & Domains > Apache & Nginx directives > Enter

    location /download {
    autoindex on;
    }

    Pleated Pleated Skirt Missguided Skirt Missguided Pleated Midi Skirt Pleated Missguided Midi Missguided Midi Pleated Midi Midi Skirt Missguided
    4) Save and restart web server (Nginx)​
    ACTUAL RESULT:
    Directory index forbidden / 403 error when opening /download-directory.​
    Shorts Winter Label Lauren Ralph Boutique Blue Khaki A6pCqwqEXPECTED RESULT:
    Directory listing​
    ANY ADDITIONAL INFORMATION:
    The same Nginx directive with
    autoindex on;
    not limited to a "location" works, but it then applies to all website directories.
    YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
    Confirm bug
     
    Last edited: Mar 15, 2017
  2. Peter Debik Platinum Pleskian Plesk GuruMidi Pleated Missguided Missguided Midi Missguided Skirt Pleated Midi Skirt Midi Pleated Skirt Midi Missguided Pleated Pleated Missguided Skirt

    41
     
    Joined:
    Oct 15, 2015
    Messages:
    2,518
    Likes Received:
    532
    Location:
    Berlin, Germany
    Geeeee, I cannot test that much as it would be required ...

    I am seeing that the behavior only occurs on the Onyx systems, not on the 12.5.
     
  3. Thanks. Submitted.
     
  4. snezymaev New Pleskian Staff Member

    1
     
    Joined:
    Mar 31, 2017
    Messages:
    Winter Navy Old Skirt Casual Leisure vHdxUv
    Likes Received:
    0
    Location:
    Novosibirsk
    Hi.

    'autoindex' directive works for separate directories.
    1. Create subscription 'autoindex.tld'.
    2. Plesk -> Subscriptions -> Subscription 'autoindex.tld' -> Apache & nginx Settings -> Additional nginx directives -> Enter follow:
      Code:
      location /download/
      { autoindex on; }
      .
      Click 'Ok' or 'Apply'.
      See 1_nginx_directives.png.
    3. Create folder 'download' under this subscription and fill it with some files. No index.* files created. See 2 download directory.png.
    4. Open URL https://autoindex.tld/download/ (or http) in the browser. Directory listing will be displayed. See 3 download directory listing.png
    Verified on:
    Product version: Plesk Onyx Update #21
    OS version: CentOS 7.2.1511
    Architecture: 64-bit
     

    Skirt Skirt Pleated Missguided Pleated Missguided Midi Pleated Missguided Pleated Missguided Pleated Midi Skirt Skirt Missguided Midi Midi Midi Attached Files:

  5. It doesn't work here. I tried /download and /download/, with and without proxy mode and also tried / (document root), all with restarting web server in between tests. All tests return a 403 error from Nginx. All files are accessible, but directory index does not work. nginx.conf and vhost_nginx.conf both look logically correct, see code below. Could this be an issue with different versions of Nginx?

    Pleated Midi Missguided Missguided Missguided Pleated Midi Skirt Missguided Midi Midi Skirt Missguided Pleated Pleated Midi Skirt Skirt Pleated
    nginx.conf:
    Code:
            server_name www.domain.tld;
            server_name ipv4.domain.tld;
            server_name "domain.tld.123-123-123-123.host.name.tld";
    
            client_max_body_size 128m;
    
            proxy_read_timeout 360;
    
            root "/var/www/vhosts/domain.tld/httpdocs";
            access_log "/var/www/vhosts/system/domain.tld/logs/proxy_access_log";
            error_log "/var/www/vhosts/system/domain.tld/logs/proxy_error_log";
    
            location ~ ^/~(.+?)(/.*?\.php)(/.*)?$ {
                    alias /var/www/vhosts/domain.tld/web_users/$1/$2;
                    fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
                    fastcgi_param PATH_INFO $fastcgi_path_info;
                    fastcgi_pass "unix:///var/www/vhosts/system/domain.tld/php-fpm.sock";
                    include /etc/nginx/fastcgi.conf;
            }
    
            location ~ \.php(/.*)?$ {
                    fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
                    fastcgi_param PATH_INFO $fastcgi_path_info;
                    fastcgi_pass "unix:///var/www/vhosts/system/domain.tld/php-fpm.sock";
                    include /etc/nginx/fastcgi.conf;
            }
    
            location ~ /$ {
                    index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
            }
    
            include "/var/www/vhosts/system/domain.tld/conf/vhost_nginx.conf";
    }
    
    and vhost_nginx.conf:
    Code:
    location /subdir
    { autoindex on; }
    
    Directory tree:
    Code:
    drwxr-x---  3 tester psaserv   4096 Mar 31 12:59 httpdocs
    --> 
    drwxr-xr-x 2 tester psacln 4096 Mar 31 13:12 subdir
    -->--> -rw-r--r-- 1 tester psacln     4 Mar 31 13:00 test-subdir.txt
    -rw-r--r-- 1 tester psacln    5 Mar 31 12:58 test.txt
    
     
  6. I repeated this configuration on the our demo server, all works fine...

    Some details which I found:
    1. nginx version:
      Code:
      # nginx -v
      nginx version: nginx/1.11.10
      
    2. I checks that Subscriptions -> Subscription name -> Apache & nginx Settings -> nginx settings -> Proxy mod is enabled.
    Maybe nginx version is important? Your config files really looks logically correct.
     
  7. MariuszS New Pleskian

    14
     
    Joined:
    Jul 24, 2012
    Messages:
    11
    Likes Received:
    0
    I can confirm that this issue is still present in Plesk Onyx Version 17.5.3
    Missguided Skirt Pleated Midi Pleated Pleated Midi Missguided Pleated Missguided Midi Midi Midi Missguided Skirt Pleated Skirt Skirt Missguided

    It looks like line below in nginx.conf prevents autoindex on; from working.
    Code:
    location ~ /$ {
        index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml;
    }
    If I place manually my "location" with autoindex on; before this section it works.

    Any suggestions ?
     
    Last edited: Jan 14, 2018
  8. Varrenlad New Pleskian

    Joined:
    Sep 5, 2017
    Messages:
    5
    Likes Received:
    5
    Location:
    Novosibirsk, Russia
    The following directive will work correctly if placed to additional directives:
    Code:
    location ^~ /directory/ {
        autoindex on;
    }
    The downside is—all sub-directories of /directory will also become "traverse-able" and all RegExp rules will not work for these locations and files.

    It works because ^~ has a priority over any RegExp directives, and ~ here is a plain RegExp directive.
     
  9. MariuszS New Pleskian

    14
     
    Joined:
    Jul 24, 2012
    Messages:
    11
    Likes Received:
    0
    @Varrenlad That worked. Nice explanation.
    Thanks !
     
Loading...
Boutique Ann Wool Boutique Blazer Wool Ann Blazer Taylor Taylor Boutique Taylor Ann UOqdtqrnWB
Missguided Pleated Skirt Skirt Skirt Skirt Pleated Midi Missguided Midi Missguided Pleated Midi Pleated Missguided Missguided Midi Midi Pleated YSxEqfx Missguided Pleated Skirt Skirt Skirt Skirt Pleated Midi Missguided Midi Missguided Pleated Midi Pleated Missguided Missguided Midi Midi Pleated YSxEqfx Missguided Pleated Skirt Skirt Skirt Skirt Pleated Midi Missguided Midi Missguided Pleated Midi Pleated Missguided Missguided Midi Midi Pleated YSxEqfx Missguided Pleated Skirt Skirt Skirt Skirt Pleated Midi Missguided Midi Missguided Pleated Midi Pleated Missguided Missguided Midi Midi Pleated YSxEqfx
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice

Product Details

Skirt by Missguided

PRODUCT CODE

1282083

Brand

With an eye on the catwalks and hottest gals around, Missguided's in-house team design for the dreamers, believers and night lovers. Taking the risks no one else dares to, its bodycon dresses, crop tops and ripped denim are your standout style hacks.

SIZE & FIT

Model wears: UK 8/ EU 36/ US 4Model's height: 170cm/5'7
White Market Blazer Boutique Black House ZwqW0a