Hello, I have a subdomain set up `sub.example.com` for my domain `example.com` and I installed node on my VPS which I have root access to the VPS. I uploaded my Node files to subdomain folders. And started my Node at `IP:3000` which I verified to be working through my Host Providers. Now What I want is to Point sub.example.com to IP:3000. So I taught of Vhost is the answer as I saw online. So I added this file to /etc/apache2/conf.d/sub.example.com.conf with this content
and restarted apache but hmmffffs is not working. So How Do I point IP:3000 to sub.example.com
Regards,
<VirtualHost *:80>
ServerName sub.example.com
<Location "/">
ProxyPreserveHost On
ProxyPass http://IP:3000/
ProxyPassReverse http://IP:3000/
</Location>
</VirtualHost>
ServerName sub.example.com
<Location "/">
ProxyPreserveHost On
ProxyPass http://IP:3000/
ProxyPassReverse http://IP:3000/
</Location>
</VirtualHost>
Regards,