0

I have two virtual host on apache.

access works on url-1 and url-2 by https (http is redirected to https)

but access by ip address of the machine works too.

I want to refuse access via ip address to my apache server.

  • See here for both a solution using the Apache2 configuration and one via .htaccess. – Jos May 16 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.