Не могу понять откуда nginx берет делает сайт.
Смотрю главный конфиг:
/etc/nginx/nginx.confhttp {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 20M;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/passenger.conf;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
В /etc/nginx/conf.d/ нахожу конфиг моего сайта:
/etc/nginx/conf.d/site.confserver {
listen 80;
server_name www.site.ru site.ru;
root /home/deploy/projects/site.ru/current/public;
passenger_enabled on;
rails_env production;
location ~ ^/assets/ {
expires 1y;
add_header Cache-Control public;
add_header ETag "";
break;
}
}
Смотрю папку c сайтом:
ls /home/deploy/projects/site.ru/current/public
404.html 500.html favicon.ico robots.txt uploads
422.html assets favicon.png system yandex_54a321xz98c2cb13.html
И совершенно не понимаю где тут главный файл на основе которого и создается сайт.
Где я ошибаюсь? Куда смотреть?