Here is what I am dealing with. I have the following in httpd.conf file. This forces authentication on 127.0.0.1/example as intended.
<Location /example/>
AuthType Basic
AuthName ...
AuthUser File ...
Require valid-user
</Location>
I also have a php file as follows (http://127.0.0.1/pre2.php)
<?php if(isMember()=='access'){?>
<iframe src="http://127.0.0.1/example" style="border: none; width:100%; height:1100px;"></iframe>
<?php
}?>
I need to make sure authentication doesn't get called by apache when 127.0.0.1/example is accessed via iframe in pre2.php.