Running react js on virtualmin server Rumi, November 21, 2024November 22, 2024 Just make sure, you have node, npm andp m2 installed in the server as root administrator. Now, you can run the rest as a virtualmin user in the virtualmin shell account. npm install npm run build npm run dev pm2 start npm -- run dev Step-3 will let you know which port the npm is exposing its service. For my case it was using http://localhost:5173 Configuring on the virtualmin to redirect http and https services to the react site In my case I wanted to send http (port 80) and https (port 443) both the traffic to back-end npm exposed 5173 port. For https- Go to, Web Configuration > Configure SSL Website > Proxying Select Yes to Act as a Proxy Server Ports to which CONNECT is allowed, selct the radio button and in the text box inser 5173 Save and Apply Configuration. Done. For http- Go to, Web Configuration >Edit Proxy Website Select Proxying Enabled Put http://localhost:5173 in the Proxy to URL Save and Apply Configuration. Done. Administrations Configurations (Linux) NPMReactReact JSvirtualmin