php - net::ERR_CONNECTION_REFUSED with Nginx and Laravel 5 -


i have installed fresh copy of laravel 5 /var/www.

when browse server net::err_connection_refused.

my nginx config (default) is:

server {     listen 80;      root /var/www/public;     index index.php index.html index.htm;      server_name _;      location / {             try_files $uri $uri/ /index.php?$query_string;     }      location ~ \.php$ {             fastcgi_split_path_info ^(.+\.php)(/.+)$;             fastcgi_pass unix:/var/run/php5-fpm.sock;             fastcgi_index index.php;             fastcgi_param script_filename $document_root$fastcgi_script_name;             include fastcgi_params;     } 

}

any idea i'm doing wrong?


i confused sites-enabled , sites-available. should default go?

i have moved default sites-available sites-enabled , getting 403 "access denied".

you got net::err_connection_refused because hadn't told nginx port listen on (note listen 80 line in config file), trying port wasn't open - hence connection refused error.

as sites-available vs sites-enabled, that's debian/ubuntu thing make sites easier manage - can have many sites configured in sites-available, run specific ones adding link in sites-enabled pointing @ respective config file in sites-available.

as example, sites-enabled folder has

lrwxrwxrwx 1 root root 40 feb  8 07:53 site.net -> /etc/nginx/sites-available/site.net 

no copying, link sites-available.


for 403 error, in error log precisely failing. should located @ /var/log/nginx/error.log - error_log in main conf file exact location.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -