How to configure a password-protected directory in Plesk

Follow

Comments

6 comments

  • Avatar
    Iman GM

    Hi,

    Without restarting the web server it won't work... 

    #service httpd restart

    I'm not sure if it's a bug or something...

    Thanks for sharing.

    0
    Comment actions Permalink
  • Avatar
    Bulat Tsydenov

    @Iman GM, Hi! It means that you have non-zero value set for "Apache restart interval " under Tools & Settings - Apache web server.

    1
    Comment actions Permalink
  • Avatar
    Iman GM

    @Bulat Tsydenov, Yeah! That did the magic. Thanks! :)

    0
    Comment actions Permalink
  • Avatar
    Ian Budiman

    Hiya,

    With one of our cust.

    Plesk 17.5.3

    I am trying to add a Password Protected Directory to the sub domain staging.xxxxx.co.nz using the Plesk feature. I can set it up correctly and protect the entire site with a forward slash /. However, it creates a bug with the live domain xxxxx.co.nz where the site is also asking for the credentials but does not need them. e.g. You can simply close the window and browse the live site.
     
    Is there a way to fix this please? We don’t want password protection on the LIVE domain. Just the staging domain.
     
    They are on the same subscriptions:
    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hi @Ian Budiman,

    Checked on test environment but did not reproduce the issue - only staging website asks for the authentication while the main one works fine

    Possibly, the main website "example.com" uses the redirect somewhere in the website code to the "staging.example.com"?

    Try to access some test file from the "/httpdocs" folder of the main website "example.com" directly, e.g. "https://example.com/robots.txt" (or create such file manually)

    If no pop-up window is returned then the issue is connected with the "example.com" website content itself

    If the issue still occurs, I suggest creating a request to the Support Department for further issue investigation

    1
    Comment actions Permalink
  • Avatar
    Luis Zubeldia

    how can exclude subfolder?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request