How I can to implement next logic in the virtualhost config :
<VirtualHost *:80>
ServerName domain.com
ServerAlias admin.domain.com
DocumentRoot /usr/.../www
<Directory /usr/.../www>
AllowOverride all
if (%{HTTP_HOST} == 'admin.domain.com') {
deny from {some ip}
}
</Directory>
</VirtualHost>
I need to make admin.explample.com acceseble only from specific IP