WorldNet
09-17-2001, 02:30 PM
this question may have been asked before but I can't seem to find the answer anywhere...
When I use .htaccess to password protect a directory it won't work unless I use admin for the username and the server admin password.
My access.conf file has "AllowOverride All"
any idea's?
CmptrWz
09-17-2001, 03:19 PM
That is VERY ODD......
Did you make your own .htpasswd file(any filename works, to tell the truth, it is the syntax that matters)? And if so is it referenced properly?
Oh, and I would like to see what you did to get that to happen. I have been trying to get something similar to your problem working myself.
nEMESIS4
09-17-2001, 05:03 PM
Sounds like you are using something along the lines as this:
AuthGroupFile /etc/wiregroup
order allow,deny
allow from all
require group site38
require valid-user
Authname Stats
Authtype Basic
Which basically just uses all the usernames that are entered through the RAQ control panel. [which also includes the admin account]
WorldNet
09-17-2001, 05:13 PM
my .htaccess files are much more basic:
AuthType Basic
AuthName "Site Name - Restircted Area"
AuthUserFile /home/sites/site#/web/directory/.htpasswd
require valid-user
I am using I am using solution scripts members only to manage .htpasswd but I have also just created the .htpsswd file manually from a telnet session with the same reuslts
maybe that will shed some light...
Chicken
09-17-2001, 07:22 PM
Lets do this another way...
How *do* you want this to work and we'll post the correct lines.
WorldNet
09-17-2001, 08:46 PM
I just want to be able to add .htaccess to a directory for a virtual domain and not have to use admin and the server admin pass.
I don't care how I get there just that I get there.
:)
Chicken
09-18-2001, 01:23 AM
So the .htaccess is going to be for a user who is not on the system already? Ie: serveradmin, siteadmin, or a user that you've set up on the server (a user meaning one you've set up through the cp)?
WorldNet
09-18-2001, 09:17 AM
I would like to be able to create any username and pass that I would like. Be it a system user or an outsite website visitor.
It must be a config issue with access.conf or I am creating my .htaccess files wrong.
troff
06-29-2002, 01:06 AM
To all those who've been facing .htaccess problems and don't know why, don't forget to upload your .htaccess files (if you are creating them off the server) in ASCII and not BINARY format.
:blush:
I was ready to throw in the towel :angry: until I found out my mistake above :cartman:
mjehlenz
06-29-2002, 07:22 AM
You might want to check out http://www.m2soft.com/crypt.en.php
There you'll find a script that generates the .htaccess and .htpasswd files for you.
Cu, Moritz
blacknight
06-29-2002, 07:27 AM
If you aren't completely comfortable with setting up .htaccess using the command line I would suggest that you install
fileman for the RAQ:
http://www.gossamer-threads.com/cobalt/
It will allow users to setup and maintain .htaccess etc., without needing any knowledge of complicated syntax etc.