-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
directory index of "/home/app/webapp/public/" is forbidden #137
Comments
Passenger expects |
Thanks for getting back to me @OnixGH
So why do you need uWSGI? I see in the passenger deploy documentation that the root should be:
Is there any specific reason it must be in |
@OnixGH @FooBarWidget |
The most common cause for this issue is that either Passenger doesn't recognize your app and thus cannot serve it (for which the Did you also check that Passenger is running (
|
I'm having the same problem, except it's for Rails. Most of the fixes or workarounds I've seen for Passenger are two or three years old. I've followed the documentation exactly. |
I'm having the same problem, trying to deploy a Rails app with Nginx and Passenger. |
Found a solution Without this directive, Passenger will thinck, that actual Ruby code is located in path, specified with Example of a correct configuration file '/etc/nginx/sites-available/app_name':
In my case, Passenger was't serving my Rails app, that was deployed with Capistrano. This will point Passenger exactly, where application code is presented. |
I came across the same fix after I found someone's example configuration on a Google Groups forum post. I just couldn't get my Rails application working with this image. I spent several days banging my head against the wall trying to get it to work. In the end, I ditched this container image and Phusion Passenger and wrote my own and I'm much, much, much happier. |
Yes, Passenger assumes that the application code will be in the parent directory of the root dir, and provides the passenger_app_root (https://www.phusionpassenger.com/library/config/nginx/reference/#passenger_app_root) config to override this when that is not the case. |
Closing as not related to passenger-docker. Questions about Passenger configuration can be posted to the Passenger community support forum. |
I've been trying to use this project to set up a Flask app. Dockerfile:
webapp.conf:
I get the error message
I think I've followed the instructions quite carefully, so I'm not sure where this mistake is coming from. Some online posts suggest adding:
But that doesn't seem to help. Let me know if I'm obviously missing something. Thanks @FooBarWidget !
The text was updated successfully, but these errors were encountered: