title: Apache 403 Forbidden You don't have permission to access / on this server
body: <p>I am new to Docker and Apache and am trying to execute a very simple program that would display a web page on my localhost. However, I keep getting a <code>403 Forbidden error</code> saying that </p>
  
  <blockquote>
    <p>"You don't have permission to access / on this server"</p>
  </blockquote>
  
  <p>. I am using <code>Apache/2.4.25 (Debian)</code> Server at localhost Port <code>5002</code>. The path to the directory is <code>~/tutorial/product</code>. I have read many solutions on here, and have tried all of them, but none of them have worked for me.</p>
  
  <p><strong>/etc/apache2/apache2.conf</strong></p>
  
  <pre><code>&lt;Directory /var/www/html&gt;
      Options FollowSymLinks
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share&gt;
      AllowOverride None
      Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p><strong>/etc/apache2/sites-enabled/000-default.conf</strong></p>
  
  <pre><code>ServerAdmin webmaster@localhost
  DocumentRoot /var/www/signature
  
  &lt;Directory /var/www/signature/&gt;
     Allowoverride all
     Order allow,deny
     Allow from all
     Require all granted
  &lt;/Directory&gt;
  
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  </code></pre>
  
  <p>I have included the permissions at each directory in the path using <code>ls -l</code>:</p>
  
  <p><strong><em>~/tutorial</em></strong></p>
  
  <pre><code>|---------------------|------------------|
  |     -rwxr-xr-x      |docker-compose.yml|
  |---------------------|------------------|
  |     drwxr-xr-x      |    product       |
  |---------------------|------------------|
  |     drwxr-xr-x      |    website       |
  |---------------------|------------------|
  </code></pre>
  
  <p><strong><em>~/tutorial/products</em></strong></p>
  
  <pre><code>|---------------------|------------------|
  |     -rwxr-xr-x      |     api.py       |
  |---------------------|------------------|
  |     -rwxr-xr-x      |    Dockerfile    |
  |---------------------|------------------|
  |     -rwxr-xr-x      |     index.php    |
  |---------------------|------------------|
  |     -rwxr-xr-x      | requirements.txt |
  |---------------------|------------------|
  </code></pre>