JoeJoe Posted August 27, 2006 Share Posted August 27, 2006 Hi guys,After read all the Apache documents, I got no answer for this.How to config 2 sets of login/password? one is allow from all IP and one is from internal network only.the order, deny, allow, satisfy stuff only help if one wants 1) login from all IP/domainor/and2) request from certain IP/domain [b]WITHOUT[/b] loginthat is different from what I want, anyone knows how to solve this?thank you very muchJoeJoe Quote Link to comment Share on other sites More sharing options...
oldmanice Posted September 4, 2006 Share Posted September 4, 2006 Just change it to how you want it Quote Link to comment Share on other sites More sharing options...
R_P Posted September 5, 2006 Share Posted September 5, 2006 JoeJoe,Check out setEnvIf at http://httpd.apache.org/docs/2.0/mod/mod_setenvif.htmlmod_access does not directly support referrer-based and URI based access control, but it can be accomplished using mod_sentenvif and the supported "Allow from env=<server_variable" construct. Here's a simple example:setenvif Referer www.ok_site.com OK_allow...Allow from env=OK_allow-or-setenvif Request_URI ip-regex-here OK_allow...Allow from env=OK_allowSee mod_setenvifGood Luck Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.