This is a discussion on htacces: apache 1.3.27 under Windows 2k - a Newbie within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, As I see from the posts in this group I understand that quite a number of people have problems ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
As I see from the posts in this group I understand that quite a number of people have problems with the .htaccess file. I am one of them. I am running Apache 1.3.27 under Windows. I created the password file with the name 'passwords' in: C:\phpdev\www\apasswd\passwords What should be the text in AuthUserFile? I know that it has to be: 'from root-to-password-directory' but I have no idea what the exact wording has to be. Is it like this: AuthUserFile www/apasswd/passwords, or what? I get the Pop up: "Enter Network Password" but I can't enter my site, because the password isn't recognized. Can anyone help me with the exact wording? Thank in advance Hans |
|
|||
|
Sunouchi wrote:
> Hello, > As I see from the posts in this group I understand that quite a number > of people have problems with the .htaccess file. I am one of them. > I am running Apache 1.3.27 under Windows. > I created the password file with the name 'passwords' in: > C:\phpdev\www\apasswd\passwords > What should be the text in AuthUserFile? > I know that it has to be: 'from root-to-password-directory' but I have > no idea what the exact wording has to be. you can use either the absolute path or the relative path to the *ServerRoot* (note: NOT *DocumentRoot*), like: AuthUserFile c:/phpdev/www/apasswd/passwords or check the ServerRoot directive in your configuration file, and then set password file with the relateve path to this server. For more detailed infomation, you may want to check the documentation: http://httpd.apache.org/docs/2.2/mod...uthn_file.html Good luck, Xicheng |
|
|||
|
On 19 Aug 2006 21:05:38 -0700, "Xicheng Jia" <xicheng@gmail.com>
wrote: >http://httpd.apache.org/docs/2.2/mod...uthn_file.html Hello Xicheng, Thank you for your advice. Your suggestion works partially. Perhaps I am too a Newbie to understand fully, but I am still running into troubles. In the browser page: http://localhost/ there is the text:: By Default only the http://localhost/public & http://localhost/site/ directories are accessible from the outside world. I used the absolute path: c:/phpdev/Apache/apasswd/passwords that works fine with http://localhost/site but not with http://localhost/public which still is accessable without any password verification. I placed a .htaccess file in c:/phpdev/www and in c:/phpdev/www/public But only the latter (http://localhost/public) asks for a password, the former doesn't. Thanks in advance Hans |
|
|||
|
Sunouchi wrote:
> On 19 Aug 2006 21:05:38 -0700, "Xicheng Jia" <xicheng@gmail.com> > wrote: > > >http://httpd.apache.org/docs/2.2/mod...uthn_file.html > > Hello Xicheng, > Thank you for your advice. Your suggestion works partially. Perhaps I > am too a Newbie to understand fully, but I am still running into > troubles. > > In the browser page: http://localhost/ there is the text:: > > By Default only the http://localhost/public & http://localhost/site/ > directories are accessible from the outside world. > > I used the absolute path: > c:/phpdev/Apache/apasswd/passwords > that works fine with http://localhost/site but not with > http://localhost/public which still is accessable without any password > verification. > > I placed a .htaccess file in c:/phpdev/www and in c:/phpdev/www/public > But only the latter (http://localhost/public) asks for a password, the > former doesn't. you can put any garbagy texts in c:/phpdev/www/.htaccess to test if this file is even in use. If your server doesnot conplain, then in your server configuration file, set the "AllowOverride" direvtive within a proper Directory container like: <Directory c:/phpdev/www/> Allowoverride AuthConfig ...... </Directory> Good luck, Xicheng |