PDA

View Full Version : .htaccess W$%(*@%*@)($%!!!!!!!!!!!!!!!!!!


shane94
03-11-2001, 01:30 PM
I am trying to set up a script called auto gallery pro. This is the .htaccess script that it is supplied with. I have changed my variables to my server but it is still not letting me access the admin aera. Here is what I got:

AuthName "AutoGallery Pro Administration"
AuthType Basic
AuthUserFile /home/sites/site7/web/cgi-bin/tgp/admin/.htpasswd
AuthGroupFile /dev/null
require valid-user
## This is a sample .htaccess file. You will need to change the AuthUserFile
## directive above so that it points to the location of the .htpasswd file
## in the admin directory. The .htpasswd file will be created by the init.cgi
## script, so the part you need to change is /mnt/web/guide/cgi/cgibin/agp/admin
##
## Example:
## If the full path to your admin directory is /home/username/cgi-bin/tgp/admin
## Then the above line should look like the following:
##
## AuthUserFile /home/username/cgi-bin/tgp/admin/.htpasswd
##
## You must use a full path or it will not function correctly. If you do not know
## the full path, do not try to guess. Contact your server administrator and ask
## them for that information. If the directory is not set properly, you will not
## be able to login to the administrative section.
##
## You should not need to edit any other part of this file, unless you
## receive a 500 server error message when trying to acess setup.cgi or admin.cgi.
## If you do, contact your server administrator for details on the correct syntax for
## a .htaccess file on your server. Make sure you upload this file in ASCII mode!

Does this look wrong? I have the paths set the same as they are on my server. Any ideals (=

Shane

I.R.Dean
03-11-2001, 02:04 PM
It looks right but I use this order AuthUserFile /your/path/to/.htpasswd
AuthGroupFile /dev/null
AuthName Administrator
AuthType Basic

require valid-user

You did upload in ascII?
does your .htpasswd look like this

admin:then coded pass

I.R.Dean
03-11-2001, 02:12 PM
Oh yeah you could try adding this to the end.


<Limit GET>
require valid-user
</Limit>

shane94
03-11-2001, 02:39 PM
yeah i uploaded in ascii mode. When I upload it I do not see the file. Is that maybe the problem. Ok I'll admit I am a dumbass and know NOTHING about .htaccess that is why I am asking you guys (=

Shane

I.R.Dean
03-11-2001, 02:42 PM
Here's a page on the basics


http://www.instanet.com/~timl/passwd.html

Dreamer
03-11-2001, 02:50 PM
<font face="Verdana, Arial" size="2">Originally posted by shane94:
yeah i uploaded in ascii mode. When I upload it I do not see the file. Is that maybe the problem. Ok I'll admit I am a dumbass and know NOTHING about .htaccess that is why I am asking you guys (=

Shane</font>

I don't either nothing about it http://bbs.adultwebmasterinfo.com/ubb/biggrin.gif
Had same problem like you when I tryed to protect my avs with .htaccess (file disapered)! But maybe it is suposed to do that..... maybe!

I.R.Dean
03-11-2001, 02:58 PM
No it's not supposed to disappear


hit me on icq and I'll see if I can help

#10965698

Ron
03-11-2001, 03:46 PM
You should contact your host, i had the same problem on one of my accounts. After i contacted the admin people, they were able to get it running fine.

some times when your .htaccess doesn't show after you U/L it, is because the host doesn't openly support member protected dir's. Which is why if i was you, i'd get in contact with them!

shane94
03-11-2001, 03:47 PM
It is a dedicated server and I run it )= hosting help stops with me!

Shane

Dammy
03-11-2001, 04:43 PM
Are u on a RAQ server? I had the problem with .htaccess dissapearing with a RAQ...

abshard
03-11-2001, 04:48 PM
When i first got agp i had the same problem. On my server htaccess was disabled in cgi-bin dirs. i just had to have linux reconfigured to let htaccess work in cgi-bin dirs..maybe thats the problem

jason

shane94
03-11-2001, 04:54 PM
yes I am using a Cobalt RAQ3

This is driving me mAd!!!!!!!!!!!! LOL

The fucking file keeps disapering!

shane94
03-11-2001, 05:51 PM
added
AuthPAM_enabled off
to the script and now it work (= YES!

Dammy
03-11-2001, 05:53 PM
From what I understand, the .htacces doesn't actually dissapear.. It's just not visible via ftp for security reasons (whatever that means)... So it is still in there. Which means there's a problem with the file itself or your server's configuration (what abshard said above)...
Sorry I couldn't be of more assistance http://bbs.adultwebmasterinfo.com/ubb/frown.gif