|
Home > Archive > Apache Server configuration support > August 2006 > htacces: apache 1.3.27 under Windows 2k - a Newbie
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
htacces: apache 1.3.27 under Windows 2k - a Newbie
|
|
| Sunouchi 2006-08-19, 7:24 pm |
| 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
| |
| Xicheng Jia 2006-08-20, 1:24 am |
| 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/mo...authn_file.html
Good luck,
Xicheng
| |
|
|
| Xicheng Jia 2006-08-20, 1:24 pm |
| Sunouchi wrote:
> On 19 Aug 2006 21:05:38 -0700, "Xicheng Jia" <xicheng@gmail.com>
> wrote:
>
>
> 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
|
|
|
|
|