Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello, I have recently deployed my Ruby on Rails application to a plain Ubuntu 16.04 droplet with Nginx, passenger & Let’s encrypt.
The rails app worked fine without Let’s encrypt but as soon as I installed it, I can’t seem to understand why it’s pointing to the “Welcome to Nginx” page instead of my rails app.
In /etc/nginx/sites-enabled/default I’ve used:
root /var/www/myapp;
root /var/www/myapp/code;
root /var/www/myapp/code/public;
This is where my application is.
Under /etc/nginx/nginx.conf I’ve tried using these:
user www-data;
user rails;
user root;
And I’ve even changed the ownership around a few times for root, rails and www-data:
sudo chown -R www-data:www-data /var/www/myapp
sudo find /var/www/myapp -type d -exec chmod 770 {} \;
sudo find /var/www/myapp -type f -exec chmod 660 {} \;
I don’t know what gives… I keep getting “403 Forbidden nginx/1.14.0” but it worked fine and launched my deployed app without Let’s Encrypt.
I would love some help, thank you!
Edward Sitarski
1fd6b9d2a2b94ee4b3e8ee6d5e2587
Traceurity
fadecomic
Mollie Semmes
Will Walters
f4df2e98b9c74f7eb7f6a0629cf1c4
erel
fingers
fingers