Re: Where to put .htpasswd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, May 27, 2009 at 7:28 PM, Jason Todd Slack-Moehrle
<mailinglists@xxxxxxxxxxxxxxx> wrote:
> Hi All,
>
> Where is the proper place to put .htpasswd so I can password protect
> directories in /var/www/html?
>
> /etc/httpd/run?

In theory if you have root access to the system, you really shouldn't
use .htaccess files unless you have to. If the file isn't going to
change it should ideally go into /etc/httpd/conf.d/someconfig.conf

The httpd documentation itself recommends against using htaccess files
because they require more cycles to process and add to httpd's
overhead. Now, for 99% (yes I made that statistic up) of webservers
out there, it's academic as they likely won't see enough load out
there to notice the difference between an included config vs an
htaccess file.


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux