Thank you! Following the path, I found the answer.
<VirtualHost *:80>
ServerName dashboard-aircare.mapshalli.org
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket
RewriteRule /(.*) ws://localhost:8501/$1 [P]
RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule /(.*) http://localhost:8501/$1 [P]
ProxyPassReverse / http://localhost:8501
</VirtualHost>