Probably you know how can I protect my directory (probably with password or somethig else) on my Linux-appache server???


There are a mutlitude of ways of doing it. I use the following (in the httpd.conf file)

<location /dir/to/protect/relative/to/http/root>
        AuthName "Access Resrticted"
        require valid-user
        AuthType basic
        AuthUserFile /path/to/passwordfile
        order deny,allow
        deny from all
        allow from  all

You can use the htpasswd to create the password file (consult the man pages)

It’s quick and painless (for me anyway)

You can also use the .htaccess but since I don’t use it, I am not sure how to go about it.