Hi, I have installed Ajenti V to get one my site migrated from other host, running on LEMP. I keep getting this error when try to browse the added website, do you have any idea? I have change the config to point the web root to other directory, why it’s keep going to the default nginx path /usr/share/nginx/html. [root@0fy1 ~]# tail -f /var/log/nginx/error.log 2014/05/24 13:39:43 [error] 1302#0: *590 directory index of “/usr/share/nginx/html/” is forbidden, client: 175.143.232.136, server: do.fff.com, request: “GET / HTTP/1.1”, host: “www.abc.my” 2014/05/24 13:39:44 [error] 1302#0: *590 directory index of “/usr/share/nginx/html/” is forbidden, client: 175.143.232.136, server: do.fff.com, request: “GET / HTTP/1.1”, host: “www.abc.my” 2014/05/24 13:39:50 [error] 1302#0: *593 connect() failed (111: Connection refused) while connecting to upstream, client: 175.143.232.136, server: do.fff.com, request: “GET /index.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “abc.my” 2014/05/24 13:39:50 [error] 1302#0: *593 open() “/usr/share/nginx/html/50x.html” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /index.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “abc.my” 2014/05/24 13:39:51 [error] 1302#0: *593 open() “/usr/share/nginx/html/favicon.ico” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /favicon.ico HTTP/1.1”, host: “abc.my” 2014/05/24 13:39:51 [error] 1302#0: *593 open() “/usr/share/nginx/html/404.html” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /favicon.ico HTTP/1.1”, host: “abc.my” 2014/05/24 13:39:51 [error] 1302#0: *593 open() “/usr/share/nginx/html/favicon.ico” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /favicon.ico HTTP/1.1”, host: “abc.my” 2014/05/24 13:39:51 [error] 1302#0: *593 open() “/usr/share/nginx/html/404.html” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /favicon.ico HTTP/1.1”, host: “abc.my” 2014/05/24 13:39:53 [error] 1302#0: *593 connect() failed (111: Connection refused) while connecting to upstream, client: 175.143.232.136, server: do.fff.com, request: “GET /index.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “abc.my” 2014/05/24 13:39:53 [error] 1302#0: *593 open() “/usr/share/nginx/html/50x.html” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /index.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “abc.my” 2014/05/24 13:40:40 [error] 1302#0: *593 connect() failed (111: Connection refused) while connecting to upstream, client: 175.143.232.136, server: do.fff.com, request: “GET /index.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “abc.my” 2014/05/24 13:40:40 [error] 1302#0: *593 open() “/usr/share/nginx/html/50x.html” failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: “GET /index.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “abc.my” The nginx file automated generated. [root@~]# less /etc/nginx/conf.d/abc.conf [root@ ~]# tail -f /var/log/ #AUTOMATICALLY GENERATED - DO NO EDIT! server { listen *:80; server_name abc.my www.abc.my; access_log /var/log/nginx/abc.access.log; error_log /var/log/nginx/abc.error.log; root /www/web/abc_my/public_html; index index.html index.htm index.php; location ~ .php$ { alias /www/web/abc_my/public_html; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_index index.php; include fcgi.conf; fastcgi_pass unix:/var/run/php-fcgi-abc-php-fcgi-0.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
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 deleting the line that says <code>fastcgi_pass 127.0.0.1:9000;</code> and restarting nginx. Does that fix it?
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.