html - Nginx conf wont work -


i working docker doesnt seem problem. problem seems come nginx conf.

nginx.conf:

user www-data; worker_processes 4; pid /run/nginx.pid;  events {   worker_connections  2048;   multi_accept on;   use epoll; }  http {   server_tokens off;   sendfile on;   tcp_nopush on;   tcp_nodelay on;   keepalive_timeout 15;   types_hash_max_size 2048;   include /etc/nginx/mime.types;   default_type application/octet-stream;   access_log off;   error_log off;   gzip on;   gzip_disable "msie6";   include /etc/nginx/conf.d/*.conf;   #include /etc/nginx/sites-enabled/*;   open_file_cache max=100; } 

default.conf:

server {     server_name  localhost;      #charset koi8-r;     #access_log  /var/log/nginx/log/host.access.log  main;      location / {         root   /var/www/symfony;         index  about.html;     }      #error_page  404              /404.html;      # redirect server error pages static page /50x.html     #     error_page   500 502 503 504  /50x.html;     location = /50x.html {         root   /usr/share/nginx/html;     } 

}

the path /var/www/symfony exists , contains index.html. when try http://localhost:80 got default page of nginx /usr/shar/nginx/index.html, dont know why.

my docker-compose

php:     build: ./php     volumes:         - ~/dev_perso/movies/app/www:/var/www/symfony         - ~/dev_perso/movies/app/logs:/var/www/symfony/app/logs     expose:         - "9000" server:     image: nginx:1.11.1     ports:         - "80:80"     volumes:         - ~/dev_perso/movies/nginx/conf/conf.d:/etc/nginx/conf.d         - ~/dev_perso/movies/nginx/conf/sites-enabled:/etc/nginx/sites-enabled         - ~/dev_perso/movies/nginx/nginx.conf:/etc/nginx/nginx.conf     volumes_from:         - php     links:         - php