How to enable/disable directory browsing for a domain in Plesk for Linux

Follow

Comments

9 comments

  • Avatar
    Myhost.ie Support

    Cant use Location in .htaccess:

    Error: /var/www/vhosts/domain.tld/httpdocs/.htaccess: <Location not allowed here, referer: https://domain.tld/

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Myhost.ie Support

    This isn't allowed by Apache design.

    0
    Comment actions Permalink
  • Avatar
    Myhost.ie Support

    So the above fix...?

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov (Edited )

    Myhost.ie Support

    My bad, I've not noticed this)

    I will ask the article author to fix the article.

    Thank you.

    0
    Comment actions Permalink
  • Avatar
    John Biddulph

    Invalid Apache configuration: AH00526: Syntax error on line 1 of /var/www/vhosts/system/mywebsite.co.uk/conf/vhost.conf: Invalid command 'location', perhaps misspelled or defined by a module not included in the server configuration

    0
    Comment actions Permalink
  • Avatar
    Kuzma Ivanov

    Hi John Biddulph

    It looks like you tried to insert nginx directives into the additional directives fields for Apache (Additional directives for HTTP/HTTPS).

    0
    Comment actions Permalink
  • Avatar
    Daniele Risolo

    I tried it but I still get error 403...... 

    0
    Comment actions Permalink
  • Avatar
    Daniele Risolo

    doesn't work, I still get error 403

    0
    Comment actions Permalink
  • Avatar
    Daniele Risolo

    solved... I didn't change the directory /shared/ with my directory... ;-)

    sorry.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request