React Vite Deployment to Apache Bitnami Server

Hi everyone,

I have finished the course for React 18 and used what I learned to create a web app. As I try to deploy it in our Apache Bitnami Server and enter the domain the app is not served. What is served is just the file structure.

Here are the steps I took to deploy this web app:

  1. npm run dev
  2. Upload the vite dist bundle to the lightsail instance through sftp
  3. Configure the “/opt/bitnami/apache2/conf/vhosts/(mydomain)-vhost.conf” and updated the root directory. It is pointed to the directory of my dist bundle
  4. Restarted my apache server
  5. Launched my domain.

After all these steps, the app is not rendering. Hope you guys can help