Require password for non-localhost connections

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Require password for non-localhost connections

Post by Ambush Commander »

How would I configure Apache to allow connections not from 127.0.0.1 but require a password (while for connections from 127.0.0.1 not require a password)?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

That would do it, but I've decided against making my entire local webserver public since HTTP authentication passwords are easily sniffed and should be avoided.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Ambush Commander wrote:since HTTP authentication passwords are easily sniffed and should be avoided.
There's no need to use basic authentication, there are other options.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Are you referring to Digest? Seems half-baked.

Oh, and I have to use Apache's access control mechanisms because I'm using it to make my local SVN server available remotely.

If I was smart, I'd get SSL working, but it's been a pain so far.
Post Reply