ruby on rails - service nginx restart fails -


i checked config syntax run nginx -t results:

nginx: configuration file /etc/nginx/nginx.conf syntax ok nginx: configuration file /etc/nginx/nginx.conf test successful 

but when run service nginx restart goes fail.

i have config file named a.com in sites-enabled folder, here's content:

server {     listen 80 default_server;     listen [::]:80 default_server ipv6only=on;      server_name a.com;      # root /usr/share/nginx/html;     # index index.html index.htm;     root /home/a/public;      client_max_body_size 10g;      location / {         proxy_pass http://localhost:3000;         proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;         proxy_set_header host $http_host;         proxy_set_header x-forwarded-proto $scheme;         proxy_buffering off;     } } 

i'm @ ubuntu 14.10 , want deploy rails server.

i kill nginx's process manually, start nginx again, solved problem.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -