Grafana over https using apache in rhel

Hi Team,

I have installed apache and grafana on the rhel 7.8 machines.

I have configured apache as below.

<VirtualHost *:80>
ServerName test

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

<VirtualHost *:443>
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/

SSLEngine On
SSLCertificateFile /etc/ssl/selfsigned.crt
SSLCertificateKeyFile /etc/ssl/selfsigned.key

I have not made any changes in the grafana config file.

I am getting the below error in the browser. kindly help me.

Not Found

The requested URL /grafana/ was not found on this server.

<VirtualHost *:80>
ServerName example

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

<VirtualHost *:443>
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/

SSLEngine On
SSLCertificateFile /etc/ssl/selfsigned.crt
SSLCertificateKeyFile /etc/ssl/selfsigned.key