Access Rails with Virtual Host?

  • | 471 points

    I recently launched my Rails web app with Laragon, by following this tutorial:

    All works fine, but my question is why when I use Apache or Nginx to access my rails web app:, it's showing index of/ (containing the structure of my dir), means that it's not properly recognizing my Rails.

    But when I use Puma Server from Rails itself, it's recognizing my Rails web app, which I wrote <h1>Welcome to RoR</h1>

    My question is how can I work with instead of localhost:3000 / use Apache/Nginx instead of Puma Server.

    Thank You

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.