Hi
I've run out of ideas on how to get this done, so I'm hoping that someone can help.
I have url: stats.foo.com
inside I have anumber of locations: location1 location2 etc..
What I'd like to do is allow person1 to access everything but only allow person2 to access location1. The site currently is protected with htaccess, but I'm struggling to creat a rule or location or directory tag to allow this to happen.
Can anyone help me with this.
Many thanks in advance.
Dan
On Wed, 2006-03-01 at 12:55 +0000, Dan Track wrote:
I've run out of ideas on how to get this done, so I'm hoping that someone can help.
I have url: stats.foo.com
Really? Is "foo.com" yours? It's a real domain name, even if its a cybersquatter or bogus wildcard result. Don't confuse things, nor get domain names indexed in search engines, by using bogus domains. Use example.com for examples, that's what it's meant for.
inside I have anumber of locations: location1 location2 etc..
What do you mean by "locations"? Files, directories, URIs that produce something that's not directly referring to filespace?
Probably <Location> directives might be what you need, but you've not provided enough information. <Directory> could be what you want.
What I'd like to do is allow person1 to access everything but only allow person2 to access location1. The site currently is protected with htaccess, but I'm struggling to creat a rule or location or directory tag to allow this to happen.
Adapt to suit (read the manual for more information) something like the following:
-------- below here --------- AuthType Basic AuthUserFile /web/users
<Directory /location1> AuthName "Restricted location 1" Require person1 person2 </Directory>
<Directory /location2> AuthName "Restricted location 2" Require person1 </Directory> --------- above here --------
It starts with the stuff that can be common, then has individual sections. The AuthName is what'll appear in the browsers authentication GUI, make it short and sensible.
On 3/1/06, Tim ignored_mailbox@yahoo.com.au wrote:
On Wed, 2006-03-01 at 12:55 +0000, Dan Track wrote:
I've run out of ideas on how to get this done, so I'm hoping that someone can help.
I have url: stats.foo.com
Really? Is "foo.com" yours? It's a real domain name, even if its a cybersquatter or bogus wildcard result. Don't confuse things, nor get domain names indexed in search engines, by using bogus domains. Use example.com for examples, that's what it's meant for.
inside I have anumber of locations: location1 location2 etc..
What do you mean by "locations"? Files, directories, URIs that produce something that's not directly referring to filespace?
Probably <Location> directives might be what you need, but you've not provided enough information. <Directory> could be what you want.
What I'd like to do is allow person1 to access everything but only allow person2 to access location1. The site currently is protected with htaccess, but I'm struggling to creat a rule or location or directory tag to allow this to happen.
Adapt to suit (read the manual for more information) something like the following:
-------- below here --------- AuthType Basic AuthUserFile /web/users
<Directory /location1> AuthName "Restricted location 1" Require person1 person2
</Directory>
<Directory /location2> AuthName "Restricted location 2" Require person1
</Directory> --------- above here --------
It starts with the stuff that can be common, then has individual sections. The AuthName is what'll appear in the browsers authentication GUI, make it short and sensible.
Hi
Thanks for your help.
True I should have used example.com. Silly me.
So to clarify the location urls will be: stats.example.com/location1 stats.example.com/location2
location1 and location2 are files in the directory pointed to by the url: stats.example.com.
Thanks Dan
On Wed, 1 Mar 2006 12:55:23 +0000 "Dan Track" dan.track@gmail.com opined:
Hi
I've run out of ideas on how to get this done, so I'm hoping that someone can help.
I have url: stats.foo.com
inside I have anumber of locations: location1 location2 etc..
What I'd like to do is allow person1 to access everything but only allow person2 to access location1. The site currently is protected with htaccess, but I'm struggling to creat a rule or location or directory tag to allow this to happen.
Your server or shared? How are you identifying person1 vs. person2 (eg, by IP)?
BTW, htaccess is somewhat deprecated. If this is your server, these should be in httpd.conf unless they change frequently.