Hello guys.
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 { listen 80; server_name mywebsite.com www.mywebsite.com; root /var/ www/mywebsite.com/current/public; passenger_enabled on; }
In the public folder I ran “chmod-R 755 public” and then immediately “chown www-data: www-data public.”
'm Having 403 error.
“403 Forbidden nginx/1.6.0”
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: <myip>, server: mywebsite.com, request: “GET / HTTP/1.1”, host: “mywebsite.com”
What am I doing wrong? My regards. Renato
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try this, its different from the one you used. <br><pre>chown -R www-data:www-data public</pre>
Thanks for your answer. I tried this, but doesn’t work too. <br> <br>Help me!!
I solved the problem. The problem was the wrong address to passenger_root. <br> <br>I fixed and worked! xD
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.