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

Follow

Comments

6 comments

  • Avatar
    Myhost

    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

    This isn't allowed by Apache design.

    0
    Comment actions Permalink
  • Avatar
    Myhost

    So the above fix...?

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov (Edited )

    Myhost

    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

Please sign in to leave a comment.

Have more questions? Submit a request