Currently I want to use NGINX in my Rails setup. I placed the configuration files in the RAILS_ROOT/config/nginx directory. Here is my configuration file called development.conf and mime.types -file.
I want to place my logs in the RAILS_ROOT/log directory.
This is my development.conf :
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream;
I start NGINX from my RAILS_ROOT with this command:
nginx -p . -c config/nginx/development.conf
And I get the following error:
nginx: [alert] could not open error log file: open() "./logs/error.log" failed (2: No such file or directory)
My version is this:
[(master)]=> nginx -v nginx version: nginx/1.2.4
Am I doing something wrong?
source share