Bluehost.com Web Hosting $6.95

htacces: apache 1.3.27 under Windows 2k - a Newbie

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-19-2006
Sunouchi
 
Posts: n/a
Default htacces: apache 1.3.27 under Windows 2k - a Newbie

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
  #2 (permalink)  
Old 08-20-2006
Xicheng Jia
 
Posts: n/a
Default Re: htacces: apache 1.3.27 under Windows 2k - a Newbie

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

  #3 (permalink)  
Old 08-20-2006
Sunouchi
 
Posts: n/a
Default Re: htacces: apache 1.3.27 under Windows 2k - a Newbie

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
  #4 (permalink)  
Old 08-20-2006
Xicheng Jia
 
Posts: n/a
Default Re: htacces: apache 1.3.27 under Windows 2k - a Newbie

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:46 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0