All threads / Host sets website root to rails 6 public folder... why?

Ask A Question


You’re not receiving notifications from this thread.

Host sets website root to rails 6 public folder... why?

Soppi asked in Servers

My host service sets website root at my rails 6 app public folder.
This results in rendering the static public/index.html instead of root 'pages#index' each time i visit the website url.
If i delete the public/index.html the website hangs with 403 Forbidden message.
Obviously it tries to find an index file inside the public folder and it fails.

How do i fix this?
Is it on the rails level or on apache/nginx/phusion passenger settings?

Plesk Obsidian, Ruby 2.6.3, Rails in production mode.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 53,130+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.