Sponsor for PC Pals Forum

Author Topic: htaccess and AuthName win32 apache 2.0.48  (Read 3465 times)

Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
htaccess and AuthName win32 apache 2.0.48
« on: June 06, 2004, 22:01 »
ive been reading howtos from google for two days looking for win32 instructions on passwording up directories in apache.

Can anyone give me a hand? :-\

lets see so far ive made, what i think is the htaccess file and htpasswd file. I think im missing steps in configuring the apache httpconfig file. But what, i don't know

Offline Rodders

  • Forum Fanatic
  • ******
  • Posts: 6495
  • Bournemouth: Where even the water is 'ard!
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #1 on: June 06, 2004, 22:16 »
Hang on then Bob.  I'll just do a quick check on Google for you.  

Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #2 on: June 08, 2004, 21:48 »
does anyone know about configing htaccess or authname on this board?

Adept

  • Guest
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #3 on: June 08, 2004, 22:20 »
Sorry Bob, not a clue :-[

Surely there's a tutorial available somewhere?

Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #4 on: June 09, 2004, 03:58 »
sadly there are loads of tutorials but most of them are unix based and i haven't been able to make heads nor tails of the few win32 tutorials i find.

Adept

  • Guest
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #5 on: June 09, 2004, 07:28 »
I've never had to touch htaccess because all of the web sites I have even been involved with have used Cpanel. Cpanel contains a neat little gui interface to the htaccess password function :)


Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #6 on: June 09, 2004, 22:14 »
are these cpanels downloadable and installable on a private server.

Adept

  • Guest
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #7 on: June 10, 2004, 07:11 »
I think so, but it only runs on *nix boxes :(

Have a look here :)

Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #8 on: June 10, 2004, 23:28 »
not a mainstream lunix user, my linux box isn't internet ready, it wouldnt help. thanks anyway.

Offline DJ

  • Established Member
  • ****
  • Posts: 1448
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #9 on: June 12, 2004, 19:49 »
Hi Bob,

I have password protected my site (which is hosted on the UK ISP Force9).

They provide a useful tutorial here...

http://www.sheamus.force9.co.uk/user/password.html

Obviously it'll be tailored to the force9 isp - but may be of some help ??

DJ


Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #10 on: June 12, 2004, 21:52 »
im on an xp machine and i must be missing something.

ive followed the steps on almost all the tutorials ive found for this but i think the problem is all the tutorials are for unix machines

ive made the .htaccess file contents:
Quote
AuthName "Warning, Craphole Ahead"
AuthType Basic
AuthUserFile "C:/Program Files/Apache Group/Apache/htdocs/bob/passwd.txt"
Require valid-user


i used the htpasswd exe to make the password file and i placed it in the bob directory.

Ive also changed the httpd.conf file so it excepts other directives
Quote

# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>


ive added the directory to be configed in the config file
Quote
<Directory "C:/Program Files/Apache Group/Apache/htdocs/bob/.htaccess">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>


i don't know what im missing but when the server is running with this done it still lets me into the bob directory without prompting me for username and pass. Ive been working on this for a week now and can't find the problem.

all of this done with instructions from http://sniptools.com/vault/windows-apache-and-htaccess-authentication.htm

i looked at your site DJ red through it and didn't see any differences between the tutorial ive been using.

Offline DJ

  • Established Member
  • ****
  • Posts: 1448
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #11 on: June 12, 2004, 22:11 »
To be honest Bob, all thats a bit too technical for me - sorry I can't be of more help.

Just a thought has the password for the site been saved in a list on your PC by anychance - so it bypasses the prompt?

Hope you get it sorted soon.

DJ

Offline Reno

  • Established Member
  • ****
  • Posts: 1286
  • ø¤º° bob °º¤ø
Re:htaccess and AuthName win32 apache 2.0.48
« Reply #12 on: June 12, 2004, 23:23 »
i thought about that and i know ive never been prompted to put in a username or pass so i would guess not. I stress the word guess. Because to be honest i don't really know either. Ive just been experimenting with setting this up, im kinda flying blind too. If i figure all this out ill post the instructions for doing it in a win32 environment or what i was or wasn't doing to get it to work


Show unread posts since last visit.
Sponsor for PC Pals Forum