Hello, Spend hours attempting to password protect a web directory- mod_rewrite enabled on httpd.conf file. Seek ideas please
Stephen
Stephen Goldman System Administrator MIT Biology sgoldman@mit.edu
On Sat, 29 Dec 2007 12:48:54 -0500 sgoldman sgoldman@MIT.EDU wrote:
Hello, Spend hours attempting to password protect a web directory- mod_rewrite enabled on httpd.conf file. Seek ideas please
This is the .htaccess file directly from one of my webservers. It works fine.
AuthUserFile /opt/passwords/parkland.pwd AuthGroupFile /dev/null AuthName ParklandONLINE AuthType Basic require valid-user
On Dec 29, 2007 12:48 PM, sgoldman sgoldman@mit.edu wrote:
Hello, Spend hours attempting to password protect a web directory-
mod_rewrite enabled on httpd.conf file. Seek ideas please
By default htaccess files are not allowed in the httpd.conf file. You have to enable them with the AllowOverride option.
Jim Perrin wrote on Sat, 29 Dec 2007 16:19:37 -0500:
By default htaccess files are not allowed in the httpd.conf file.
And you don't even need them, you can just use the same directives in the configuration which has the advantage that Apache doesn't have to probe for this file each time it fulfills a request.
Kai
On Dec 30, 2007 10:31 AM, Kai Schaetzl maillists@conactive.com wrote:
Jim Perrin wrote on Sat, 29 Dec 2007 16:19:37 -0500:
By default htaccess files are not allowed in the httpd.conf file.
And you don't even need them, you can just use the same directives in the configuration which has the advantage that Apache doesn't have to probe for this file each time it fulfills a request.
Indeed. This is actually a performance tuning piece for apache, and the first in their 'when not to use' section for htaccess.
Documentation for this is available here to those who are interested -> http://httpd.apache.org/docs/2.0/howto/htaccess.html#when