Friday, January 1, 2010

Office Building Blueprints

Compaq Presario CQ61 Protect folders. htaccess

In the previous post install munin, which shows statistics http://localhost/munin system.
Now we can protect access to this folder so that only authorized users can access them.

create the directory / var / www / munin file. htaccess with the following contents:

AuthName "Login"

AuthType Basic AuthUserFile / var / www / munin / .htpasswd
require valid-user

Now create the file. Htpasswd and add a user:

htpasswd-c. htpasswd USER

We have it protected. More information here .


Note: default ubuntu directives are ignored. Htpasswd to activate must edit the file:

/ etc/apache2/sites-available/default

And replace directives:

AllowOverride None

By:

AllowOverride All

Now the run.

0 comments:

Post a Comment