Q:

EC2: Rails Nginx installation

I am running into an issue where I cannot find the sites-available folder under
/etc/nginx/
Install nginx from source.
nginx -v : nginx version: nginx/1.0.14
Folders under /etc/nginx :
conf.d  fastcgi_params  koi-utf  koi-win  mime.types  nginx.conf  scgi_params  uwsgi_params  win-utf
nginx default.conf located under conf.d folder. Rest of the above are all stand alone files.
I want nginx to show my rails app but I cannot find sites-available folder to add that configuration.

A:

"site-available" etc is just a specific configuration arrangement to manage files from Ubuntu and is not part of Nginx.
If you want to use such an arrangement, and not using the Ubuntu package manager to install Nginx, you need to create the folder yourself.
You might have seen examples with this on the web simply because the people writing these use Ubuntu and just assume everybody else is. As said,it makes no difference to Nginx and is just a convenience thing. I.E., a place to put the config files for individual domains. You can call it whatever you want or just dump the individual files in /etc/nginx/ if you want.
I use a completely different folder system for instance and what this happens to be, if any, is of no relevance to the operation of Nginx.
BTW. conf.d is a valid place put individual conf files and is actually the default place for this. Site-available etc type configurations are changing from this.

