Redirect IP to hostname keyhelp

/etc/apache2/keyhelp/keyhelp.conf:
# Redirect HTTP -> HTTPS
<VirtualHost *:80>
ServerName panel.example.com
ServerAlias localhost 192.168.0.1

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]).*$
RewriteRule ^(.*)$ https://%{HTTP_HOST}
</IfModule>

Redirect / https://panel.example.com/
</VirtualHost>