We have https://example1.com/login
and example2.com/login
being hosted from the same apache server (2.2.22). I want to restrict /login
on example1.com
.
example1.com/login
--> 404 (preferably) or 403example2.com/login
--> login page
I tried
<Location /login>
Order Deny,Allow
Deny from example1.com
Allow from example2.com
</Location>
It disables /login
from both example1.com
and example2.com
. Can I restrict just example1.com
?