You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Bodden <jb...@csuniv.edu> on 2002/04/22 21:52:29 UTC
Apache 2.0.35 on Windows .htaccess file problem
hello all.
I am trying to setup my server with a name and password for access to a
certain directory. I have done this before with the Unix version, and I think
I have a file path problem. I have created the user file with htpasswd -c. I
have created the .htaccess file and placed it in the directory that I want to
protect. I have edited the .conf file and set AllowOverride all.
Here is a printout of the .htaccess file
--
Authname "Faculty Only"
AuthType Basic
AuthUserFile "d:\Program files\Apache Group\apache2\bin\faculty"
require valid-user
--
My server root is d:\Program files\Apache Group\apache2
(Do I need forward slashes?)
the access file name is faculty.
Right now the .htaccess file is located in the document root at
d:\Program files\Apache Group\apache2\htdocs.
thanks for your help
John
---
John Bodden
Database Administrator
Charleston Southern University
843-863-8093 (Phone)
843-863-8074 (Fax)
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Apache 2.0.35 on Windows .htaccess file problem
Posted by Joshua Slive <jo...@slive.ca>.
John Bodden wrote:
> (Do I need forward slashes?)
Yes. You should always use forward slashes in the Apache configuration.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org