Passenger + nginx + Rails4 : 'Further configuration is required' (nginx's default page is shown) instead of my rails app -


i've installed passenger nginx on ubuntu (12.04) server. seems working fine (i.e. nginx firing w/o issues) except on browser i'm shown default nginx landing page ("welcome nginx! if see page, nginx web server installed , working. further configuration required.") expecting rails app's home page on browser.

following nginx.conf:

user www-data; worker_processes 4; pid /var/run/nginx.pid; events {     worker_connections 768;     # multi_accept on; }  http {      ##     # basic settings     ##      sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     types_hash_max_size 2048;     # server_tokens off;      # server_names_hash_bucket_size 64;     # server_name_in_redirect off;      include /etc/nginx/mime.types;     default_type application/octet-stream;      ##     # logging settings     ##      access_log /var/log/nginx/access.log;     error_log /var/log/nginx/error.log;      ##     # gzip settings     ##      gzip on;     gzip_disable "msie6";      # gzip_vary on;     # gzip_proxied any;     # gzip_comp_level 6;     # gzip_buffers 16 8k;     # gzip_http_version 1.1;     # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;      ##     # nginx-naxsi config     ##     # uncomment if installed nginx-naxsi     ##      # include /etc/nginx/naxsi_core.rules;      ##     # phusion passenger config     ##     # uncomment if installed passenger or passenger-enterprise     ##      passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;     #passenger_ruby /usr/bin/ruby;     passenger_ruby /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby;       server {         listen 80;         server_name mydomain.com;         root /path_from_root_to/my_app/public;         passenger_enabled on;         rails_env production;     }          ##     # virtual host configs     ##      include /etc/nginx/conf.d/*.conf;     include /etc/nginx/sites-enabled/*; }   # mail { #   # see sample authentication script at: #   # http://wiki.nginx.org/imapauthenticatewithapachephpscript #  #   # auth_http localhost/auth.php; #   # pop3_capabilities "top" "user"; #   # imap_capabilities "imap4rev1" "uidplus"; #  #   server { #       listen     localhost:110; #       protocol   pop3; #       proxy      on; #   } #  #   server { #       listen     localhost:143; #       protocol   imap; #       proxy      on; #   } # } 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -