1. Please take a little time for this simple survey! Thank you for participating!
    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

Password protect all files but one?

Discussion in 'Plesk for Linux - 8.x and Older' started by LARyan, Apr 6, 2006.

  1. LARyan

    LARyan Guest

    0
     
    We're creating a new site for a client. We want to keep it password protected from the general public during development. Is there a way to password protect all files and directories, except the index.html?
     
  2. pixelmeister

    pixelmeister Guest

    0
     
    Hi LARyan,

    here is my .htaccess file:

    #.htaccess
    AuthType Basic
    AuthName "Secure"
    AuthUserFile /path/to/.htpasswd
    <Files *.*>
    require valid-user
    </Files>
    <Files index.html>
    satisfy any
    </Files>
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>

    Hope that helps :)
     
  3. LARyan

    LARyan Guest

    0
     
    Thank you for the quick response. I'll try this out today.

    Lee
     
Loading...