Hi I'm a newbie trying to get my first rails site up on my server Right now the site returns 404 Not found Here's the error from nginx-error.log and then my nginx.conf file below All the guides I've tried to follow are different Some say passenger will create a current directory between therailsappname and literally public directory while other guides make no use of the current directory Some guides say I have to build symlinks while others make no mention of it I haven't tried building a symlink yet because I'm just not sure Please help
httpd-error.log says: 2015/09/16 00:30:29 [error] 1873#0: *28 open() "/usr/home/username/websites/myrailsappname/public/freenode-proxy-checker.txt" failed (2: No such file or directory), client: 83.170.73.249, server: www.mydomain.com, request: "GET http://vlad-tepes.bofh.it/freenode-proxy-checker.txt HTTP/1.0" #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024;} http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name servername.com; #charset koi8-r; #access_log logs/host.access.log main; location / { root /usr/home/anotherusername/www; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx-dist; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # another virtual host using mix of IP-, name-, and port-based configuration # #server { # listen 8000; # listen somename:8080; # server_name somename alias another.alias; # location / { # root; html; # index index.html index.htm; # } #} # HTTPS server # #server { # listen 443 ssl; # server_name localhost; # ssl_certificate cert.pem; # ssl_certificate_key cert.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} server { listen 80 default accept_filter=httpready; # listen [::]:80 default_server ipv6only=on; # please for a better world be IPv6 compliant ! server_name www.myhostname.com; charset utf-8; root /usr/home/username/websites/myhostname/public; rails_env production; passenger_enabled on; } } -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f8104168-a04a-4f84-b66e-69f25fd9e5c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.