| Allow (few) IP address without password prompt but rest of other IP address require password prompt [message #897] |
Tue, 11 March 2008 05:06  |
samu Messages: 3 Registered: March 2008 Location: ktm |
|
|
|
Greetings All,
I would like to convince three IP address to apache that if user try to see my web with that ip then it should allow without password prompt but rest of all require password prompt. Strugglin on it and spent day long but no joy on it. Please share your views.
I used this htaccess..
This htaccess works perfectly to my localhost but when i use this same htaccess another server where i have to place it, is not working(I mean, From allow ip also, it asks username and password)
AuthUserFile /Applications/MAMP/htdocs/test/.htpasswd
AuthType Basic
AuthName "feed on feed"
<LIMIT GET POST>
require valid-user
order deny,allow
deny from all
allow from xxx.xxx.x.xxx
allow from xxx.xxx.x.xxx
allow from xxx.xxx.x.xxx
Satisfy Any
</LIMIT>
It/s an urgent...
Thank you all for your kind help
Samu
|
|
|
| Re: Allow (few) IP address without password prompt but rest of other IP address require password pro [message #899 is a reply to message #897 ] |
Wed, 12 March 2008 05:09   |
samu Messages: 3 Registered: March 2008 Location: ktm |
|
|
|
Greetings All!
- Just Found a main Problem..
a.) From the server where i have to place the htaccess, From there it's working(authenticate correctly) as I browse by placing ip
eg http://125.165.1.201/myfolder/
while browse this way, it does work correctly. turst the allowed ip and require no password but rest require user name and password.
b.) But If Browse by(this is actually redirect url of 125.165.1.201) http://npl.hamro.com/myfolder/ then this does not trust the allowed ip from htaccess. It asks password and username.
c.) I have checked my Apache
Apache Version Apache/1.3.33 PHP/5.2.1
Hostname:Port npl.hamro.com:80
HTTP_HOST 125.165.1.201
REDIRECT_SCRIPT_URI http://npl.hamro.com
SERVER_ADDR 125.165.1.201
SERVER_NAME npl.hamro.com
SERVER_PORT 80
d.) So I can browse by both way, but for public, I need to use url http://npl.hamro.com/myfolder/ but this is not working.
Your kind help would be greatly appreciated.
Hoping to get solution
Samu
|
|
|
| Re: Allow (few) IP address without password prompt but rest of other IP address require password pro [message #900 is a reply to message #897 ] |
Wed, 12 March 2008 05:10  |
samu Messages: 3 Registered: March 2008 Location: ktm |
|
|
|
Greetings All!
- Just Found a main Problem..
a.) From the server where i have to place the htaccess, From there it's working(authenticate correctly) as I browse by placing ip
eg http://125.165.1.201/myfolder/
while browse this way, it does work correctly. turst the allowed ip and require no password but rest require user name and password.
b.) But If Browse by(this is actually redirect url of 125.165.1.201) http://npl.hamro.com/myfolder/ then this does not trust the allowed ip from htaccess. It asks password and username.
c.) I have checked my Apache
Apache Version Apache/1.3.33 PHP/5.2.1
Hostname:Port npl.hamro.com:80
HTTP_HOST 125.165.1.201
REDIRECT_SCRIPT_URI http://npl.hamro.com
SERVER_ADDR 125.165.1.201
SERVER_NAME npl.hamro.com
SERVER_PORT 80
d.) So I can browse by both way, but for public, I need to use url http://npl.hamro.com/myfolder/ but this is not working.
Your kind help would be greatly appreciated.
Hoping to get solution
Samu
|
|
|