PC Pals Forum
Technical Help & Discussion => Website Design & Programming => Topic started by: Reno 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
-
Hang on then Bob. I'll just do a quick check on Google for you. (https://www.pc-pals.com/smf/proxy.php?request=http%3A%2F%2Fwww.hogarth-hq.com%2Fsmileys%2Fmickey.gif&hash=436c144f7c85762fdc32c5e5eecf2d0609f2403a)
-
does anyone know about configing htaccess or authname on this board?
-
Sorry Bob, not a clue :-[
Surely there's a tutorial available somewhere?
-
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.
-
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 :)
-
are these cpanels downloadable and installable on a private server.
-
I think so, but it only runs on *nix boxes :(
Have a look here (http://www.cpanel.net/) :)
-
not a mainstream lunix user, my linux box isn't internet ready, it wouldnt help. thanks anyway.
-
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
-
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:
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
# 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
<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.
-
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
-
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