| Neil Thompson on Wed, 3 Jan 2001 12:31:07 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: GLUG: Apache Authentication |
Hi Neil On Wed, 3 Jan 2001, Neil Fryer wrote: > Okay, I've asked this question before, and no-one was able to help me out, so > I'm hoping that now, with more people on this list, and it being a new year and > all that, that someone will be able to help. > I have a webserver, running apache, on this webserver is our intranet site, > this server is at present accessible from both our LAN, and from the www, now > what I want to do is make this more secure, by allowing all people on our LAN > access to this intranet site, while prompting all people from outside our > intranet for a username and passwd. Does anyone know how I can accomplish this, > as so far, all that I've manged to do is have it prompting for a passwd from > both sides, which is not what I want. <UNTESTED> Looking through the documentation, it seems as though you could use the mod_access directive "allow from host ..." in your .htaccess file together with the mod_auth directives. At a guess (and I'm no expert) if you put the "allow from host/range" stuff before the auth stuff you should get what you want </UNTESTED> Cheers! (Relax...have a homebrew) Neil