You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 91 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - .htaccess and .staccess [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ThatzVinyl
Nuke Soldier
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10


PostPosted: Wed Dec 08, 2004 1:26 pm Reply with quoteBack to top

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
Find all posts by ThatzVinylView user's profileSend private message
ThatzVinyl
Nuke Soldier
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10


PostPosted: Wed Dec 08, 2004 1:43 pm Reply with quoteBack to top

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
Find all posts by ThatzVinylView user's profileSend private message
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Wed Dec 08, 2004 2:06 pm Reply with quoteBack to top

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 Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
Kaplumb_Aga
Nuke Soldier
Nuke Soldier


Joined: Nov 29, 2004
Posts: 16

Location: Istanbul - Turkey

PostPosted: Wed Dec 08, 2004 6:18 pm Reply with quoteBack to top

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
Find all posts by Kaplumb_AgaView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Dec 08, 2004 7:08 pm Reply with quoteBack to top

The official support site for NukeSentinel(tm) is http://ravenphpscripts.com . We appreciate NC for handling questions about it, but for answers from the authors I suggest the support site.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
ThatzVinyl
Nuke Soldier
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10


PostPosted: Wed Dec 08, 2004 11:54 pm Reply with quoteBack to top

thanks for the advice, will give it a go.
Find all posts by ThatzVinylView user's profileSend private message
ThatzVinyl
Nuke Soldier
Nuke Soldier


Joined: Dec 08, 2004
Posts: 10


PostPosted: Thu Dec 09, 2004 12:38 am Reply with quoteBack to top

thats great it worked.
Find all posts by ThatzVinylView user's profileSend private message
Ruger
Nuke Cadet
Nuke Cadet


Joined: May 23, 2004
Posts: 4


PostPosted: Sun Dec 12, 2004 12:32 am Reply with quoteBack to top

Im having the same problem to after following all the above. Does this by any way conflict with admin secure?
Find all posts by RugerView user's profileSend private messageVisit poster's website
Sugs
Lieutenant
Lieutenant


Joined: Jan 10, 2004
Posts: 188

Location: UK

PostPosted: Thu Dec 23, 2004 6:08 am Reply with quoteBack to top

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.
Find all posts by SugsView user's profileSend private message
nacho
Nuke Cadet
Nuke Cadet


Joined: Jan 19, 2005
Posts: 1


PostPosted: Wed Jan 19, 2005 5:41 am Reply with quoteBack to top

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>"
  ."&lt;Files .staccess&gt; <br>"
  . "deny from all <br>"
  . "&lt;/Files&gt; <br>"
  . "<br>"
  . "&lt;Files admin.php&gt; <br>"
  . "&lt;Limit GET POST PUT&gt; <br>"
  . "require valid-user <br>"
  . "&lt;/Limit&gt; <br>"
  . "AuthName &quot;Restricted access&quot; <br>"
  . "AuthType Basic <br>"
  . "AuthUserFile ". getcwd() ."/.staccess <br>"
  . "&lt;/Files&gt;</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
Find all posts by nachoView user's profileSend private message
Maximus-Sniper
Nuke Cadet
Nuke Cadet


Joined: Mar 26, 2005
Posts: 4

Location: Somewhere in Norway

PostPosted: Sun Apr 24, 2005 2:50 am Reply with quoteBack to top

Hi all Smile

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 Smile I found it : Smile

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 Smile All admin.php are protected Smile
Find all posts by Maximus-SniperView user's profileSend private message
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.221 Seconds - 316 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::