I configured my Nginx to run passenger with Nginx module. My PHP applications work normally.
In my nginx.conf file I put the following:
server_name mywebsite.com www.mywebsite.com;
root /var/ www/mywebsite.com/current/public;
In the public folder I ran "chmod-R 755 public" and then immediately "chown www-data: www-data public."
'm Having 403 error.
In my error.log I can see this.
2014/05/23 13:04:16 [error] 23505#0: *295 directory index of "/var/www/mywebsite.com/public_html/current/" is forbidden, client: , server: mywebsite.com, request: "GET / HTTP/1.1", host: "mywebsite.com"
What am I doing wrong?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.