title: 403 Forbidden error when using nginx inside docker
body: <p>I am trying to build a nginx webserver to share files among team members.</p>
  <p>In 'ubuntu 16.04', I am running following command:</p>
  <pre><code>root@automation00-new:/home/test# docker run -d  -p 8081:80 -v /var/www/apj/:/usr/share/nginx/html --name test-nginx  nginx:latest
  </code></pre>
  <p>As shown below docker is able to mount the files successfully.</p>
  <pre><code>root@automation00-new:/home/test# docker exec ec795af0f1f2 ls /usr/share/nginx/html
  Builds
  Logs_for_perf_Testing
  json.txt
  ravi
  root@automation00-new:/home/test# 
  </code></pre>
  <p>But when I try to access webserver using browser &quot;http://1.1.1.1/8081&quot; I am seeing '403 forbidden' error.</p>
  <p>But if I try 'http://1.1.1.1/8081/json.txt', I am able to view the 'json.txt' contents on browser.</p>
  <p>I want to browse all the directories and files inside.</p>
  <p>Any idea on how to fix this issue please?</p>