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 Link to comment https://forums.phpfreaks.com/topic/18811-access-control-how-to-do-multiple-rules/ 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 Link to comment https://forums.phpfreaks.com/topic/18811-access-control-how-to-do-multiple-rules/#findComment-86011 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 Link to comment https://forums.phpfreaks.com/topic/18811-access-control-how-to-do-multiple-rules/#findComment-86451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.