You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "S.A. Birl" <sb...@concept.ocis.temple.edu> on 2007/06/06 21:18:13 UTC
[users@httpd] Access or Authentication via username or IP
Hello all:
Im pretty sure Ive read this in the 2.2 docs (scratches head):
A way to protect a directory so that if I access the directory, say
from 192.168.0.1, Im allowed in WITHOUT a username/password, but any
other IP would prompt for a username/password.
Im looking for .conf configuration, not a .htaccess configuration.
But if it comes down to it I'll use .htaccess.
Thanks
Birl
Please do not CC me responses to my own posts.
I'll read the responses on the list.
Archives http://mail-archives.apache.org/mod_mbox/httpd-users/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Access or Authentication via username or IP
Posted by "S.A. Birl" <sb...@concept.ocis.temple.edu>.
On Jun 6, 2007, Vincent Bray (nospam-noodlet@gmail.com.ns) typed:
noodl: > Im pretty sure Ive read this in the 2.2 docs (scratches head):
noodl:
noodl: Here perhaps? http://httpd.apache.org/docs/2.2/mod/core.html#satisfy
Yes! Im so blind .... I was just on the core.html page.
Thank you Noodl and Joshua.
Birl
Please do not CC me responses to my own posts.
I'll read the responses on the list.
Archives http://mail-archives.apache.org/mod_mbox/httpd-users/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Access or Authentication via username or IP
Posted by Vincent Bray <no...@gmail.com>.
On 06/06/07, S.A. Birl <sb...@concept.ocis.temple.edu> wrote:
> Im pretty sure Ive read this in the 2.2 docs (scratches head):
Here perhaps? http://httpd.apache.org/docs/2.2/mod/core.html#satisfy
> A way to protect a directory so that if I access the directory, say
> from 192.168.0.1, Im allowed in WITHOUT a username/password, but any
> other IP would prompt for a username/password.
Try:
<Location />
AuthType Basic
AuthName "Secure Bits"
AuthUserFile /some/path
Require valid-user
Order allow,deny
Allow from 1.2.3.4
Satisfy Any
</Location>
> Im looking for .conf configuration, not a .htaccess configuration.
> But if it comes down to it I'll use .htaccess.
This indicates a misconception about htaccess. Anything that can be
done in a htaccess file can be done better (quicker, easier to manage)
in the main config file. Also, despite the name, htaccess files are
not meant just for access control. This article explains it better
than I can:
http://www.regdeveloper.co.uk/2006/08/01/apache_undead/
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Access or Authentication via username or IP
Posted by Joshua Slive <jo...@slive.ca>.
On 6/6/07, S.A. Birl <sb...@concept.ocis.temple.edu> wrote:
> Hello all:
>
> Im pretty sure Ive read this in the 2.2 docs (scratches head):
>
> A way to protect a directory so that if I access the directory, say
> from 192.168.0.1, Im allowed in WITHOUT a username/password, but any
> other IP would prompt for a username/password.
>
> Im looking for .conf configuration, not a .htaccess configuration.
> But if it comes down to it I'll use .htaccess.
http://wiki.apache.org/httpd/Recipes/BypassAuthenticationOrAuthorizationRequirements
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org