1

Topic: .htaccess and .htpasswd

Hello,

I want to set a password protect (.htaccess and .htpasswd) to
Panels of phpMyAdmin, postfixadmin, awstats and roundcube.

I know how to make the .htaccess and .htpasswd file.
https://www.washington.edu/computing/we … basic.html
http://www.thesitewizard.com/apache/pas … tory.shtml

I have CentOS 5.4 and iRedmail 0.5.0

My DocumentRoot is "/var/www/html"

Here are my directories at /var/www

awstats
cgi-bin
error
html
icons
manual
phpmyadmin
phpMyAdmin-2.11.9.5-all-languages
postfixadmin
postfixadmin-2.2.1.1
roundcubemail
roundcubemail-0.2.1

1) Where should I put .htaccess and .htpasswd?

2) What is the path for httpd.conf in Apache?

I have tried to set the .htaccess and .htpasswd
in the folders of phpMyAdmin, postfixadmin, awstats and roundcube
but it does not work.

Thanks

Peace5

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: .htaccess and .htpasswd

Put .htaccess in the folders which should be protected.
Put .htpasswd somewhere outside of your document root (could be /etc/apache2/passwd)

The httpd.conf is split into multiple .conf files in /etc/apache2 including all files in sites-enables, mods-enabled, conf and the apache2.conf.

3

Re: .htaccess and .htpasswd

Thank you very much  I will try it.