| Author |
Message |
ThatzVinyl
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10
|
Posted:
Wed Dec 08, 2004 1:26 pm |
  |
Hi,
I am having difficulties with the ht and st access files, when I upload them I am unable to access the site.
my .htacess contains
| Quote: |
Options All -Indexes
DirectoryIndex index.php index.htm index.html
# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .staccess>
deny from all
</Files>
<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted"
AuthType Basic
AuthUserFile .staccess
</Files>
# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------
|
and the .staccess appears top be blank.
I have chmoded the .staccess to 666, does the .htaccess have to have the same permissions?
I have never delt with this before, so I would really apprecaite some assistance.
tnx
ThatzVinyl |
|
|
   |
 |
ThatzVinyl
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10
|
Posted:
Wed Dec 08, 2004 1:43 pm |
  |
ok,
i now have my .htaccess looking like this
| Quote: |
# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .staccess>
deny from all
</Files>
<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted by NukeSentinel(tm)"
AuthType Basic
AuthUserFile /home/httpd/vhosts/thatzvinyl.com/httpdocs/.staccess
</Files>
# -------------------------------------------
# End of NukeSentinel(tm) admin.php Auth
# ------------------------------------------- |
But I still cannot login in |
|
|
   |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Wed Dec 08, 2004 2:06 pm |
  |
Did Sentinel mentioned somewhere in user-manual document on how to deal with these two files? If Sendinel never altering .htaccess file, you can CHMOD it to 644. It seems that .staccess is a special file used by Sentinel to store valid admin login info (through http auth basic). If Sentinel managing this file, it advisable to CHMOD .staccess as 777.
Just one last question: What kind of error you get when trying to access the site? Is it a 500 internal server error or something else? Is this error occured on entire site or just whenever you tried to access admin.php file? |
_________________ I'm  |
|
      |
 |
Kaplumb_Aga
Nuke Soldier


Joined: Nov 29, 2004
Posts: 16
Location: Istanbul - Turkey
|
Posted:
Wed Dec 08, 2004 6:18 pm |
  |
at first you must set your admin password before activating HTTPAuth
or CGIAuth and remove the code above from .htaccess file.
then go to sentinel's main admin panel and make sure you have
Admin Auth: set to Admin CGIAuth.
then goto admin.php?op=ABAuthList and there should be a link with a
label of Build CGIAuth file:. Click that link which will then store
the CGIAuth aid's and passwords into the .staccess file.
Then you can add the code above back into your .htaccess file |
|
|
   |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Wed Dec 08, 2004 7:08 pm |
  |
|
    |
 |
ThatzVinyl
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10
|
Posted:
Wed Dec 08, 2004 11:54 pm |
  |
thanks for the advice, will give it a go. |
|
|
   |
 |
ThatzVinyl
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10
|
Posted:
Thu Dec 09, 2004 12:38 am |
  |
|
   |
 |
Ruger
Nuke Cadet


Joined: May 23, 2004
Posts: 4
|
Posted:
Sun Dec 12, 2004 12:32 am |
  |
Im having the same problem to after following all the above. Does this by any way conflict with admin secure? |
|
|
    |
 |
Sugs
Lieutenant


Joined: Jan 10, 2004
Posts: 188
Location: UK
|
Posted:
Thu Dec 23, 2004 6:08 am |
  |
I have posted this elsewhere but will repeat it anyway as I came across this myslef on a new install with 7.6
When you use CGIAuth Setup it gives you a code to add into htaccess.
In the code find the line
| Code: |
| AuthName "Restricted by NukeSentinel(tm)" |
Change to
| Code: |
| AuthName "your admin.php user login name" |
Where your admin.php user login name is obviously your admin name.
Failure to do this will result in being asked 3 times for username and password then a 401 error or similar. |
_________________ Help Me !!! The Humphries are after me milk. |
|
   |
 |
nacho
Nuke Cadet


Joined: Jan 19, 2005
Posts: 1
|
Posted:
Wed Jan 19, 2005 5:41 am |
  |
Problems with .htaccess and .staccess (for cgiAuth)?
I told this in my web. (http://usuarios.lycos.es/laguerdenacho)
The problem is that you have to put in .htaccess the full path of the .staccess file
.htaccess and .staccess >> chmod 666
Now make a txt file with the following code, ande rename to whatever.php
| Code: |
<?php
echo"<p>.htaccess generator for Nuke Sentinel - By Nacho - http://usuarios.lycos.es/laguerdenacho<br>"
."<p>Copy the code between (*****) lines to make your .htaccess file <br>"
."<p> <br>"
."<p> <br>"
."<p> <br>"
."********************************************************************** <br>"
."# ------------------------------------------- <br>"
."# Start of NukeSentinel(tm) admin.php Auth <br>"
."# ------------------------------------------- <br>"
."<Files .staccess> <br>"
. "deny from all <br>"
. "</Files> <br>"
. "<br>"
. "<Files admin.php> <br>"
. "<Limit GET POST PUT> <br>"
. "require valid-user <br>"
. "</Limit> <br>"
. "AuthName "Restricted access" <br>"
. "AuthType Basic <br>"
. "AuthUserFile ". getcwd() ."/.staccess <br>"
. "</Files></p>"
."# ------------------------------------------- <br>"
."# End of NukeSentinel(tm) admin.php Auth <br>"
."# ------------------------------------------- <br>"
."********************************************************************** <br>"
."";
?> |
Upload the file to your server, and point your browser to _www.yourwebb/whatever.php
There you will see your personal code to make the .htaccess file. You don't need to change anything |
|
|
   |
 |
Maximus-Sniper
Nuke Cadet


Joined: Mar 26, 2005
Posts: 4
Location: Somewhere in Norway
|
Posted:
Sun Apr 24, 2005 2:50 am |
  |
Hi all
I was woundring about how i can protect more than one file??
Here is a eks. :
| Code: |
<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName EnterPassword
AuthType Basic
AuthUserFile /your_root_to_httproot/.htpasswd
</Files> |
In that eks, it's only protect one file admin.php, but how can i add some more files in the same .htaccess???
Hi I found it :
| Code: |
<FilesMatch admin.php>
AuthName "Restricted File"
AuthType Basic
AuthUserFile /user/home/www/directory/.htpasswd
require valid-user
</FilesMatch>
<FilesMatch config.php>
AuthName "Restricted File"
AuthType Basic
AuthUserFile /user/home/www/directory/.htpasswd
require valid-user
</FilesMatch> |
Use the <FilesMatch> tag to protect individual files. It's mean that we can protect all admin.php or whatever in your site All admin.php are protected  |
|
|
   |
 |
|
|