Disabling ip address access for apache

Change:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot {{ doc_root }}

    <Directory />
                    Options Indexes FollowSymLinks Includes ExecCGI
                    AllowOverride ALL
    </Directory>

    <Directory {{ doc_root }}>
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog "/var/log/httpd/html-error_log"
    CustomLog "/var/log/httpd/html-access_log" common
</VirtualHost>

to...

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    Redirect 403 /
    ErrorDocument 403 "Sorry, direct IP access not allowed."
    ErrorLog "/var/log/httpd/html-error_log"
    CustomLog "/var/log/httpd/html-access_log" common
</VirtualHost>