X Nations

X Nations (http://www.xnations.com/index.php)
-   General Webmaster Business and Discussions (http://www.xnations.com/forumdisplay.php?f=2)
-   -   htaccess question (http://www.xnations.com/showthread.php?t=2846)

schilli 04-13-2003 04:55 PM

htaccess question
 
More htaccess questions.

Here's the htaccess I'm using to protect my members area:
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data/.htpasswd
AuthName MEMBERS
AuthType Basic

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

I want to be able to offer a "tiered" membership option allowing access to more withing my membership area for more money. So I need to protect directories separately. With the file listed above does anyone know if I can add some lines in??? I'd try it on my server but I don't want to mess with my present customers and accidently block them out. I'd basically be adding separate data locations for the password files to different directories. So does anyong know if I can do this --

AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/vdata/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data1/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data2/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data#/.htpasswd
AuthName MEMBERS
AuthType Basic

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


-- in other words repeat the "AuthUserFile" line???

wsjb78 04-13-2003 06:17 PM

Hmmm,

how about setting up a database with member info and access areas and then writing or deleting usernames from local area .htaccess files? We've done a similar thing with PHP!


All times are GMT -4. The time now is 06:21 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
2013 - xnations.com