title: forbidden 4.3 error on apache in ubuntu for my flask script
body: <p>I created my flask service and hosted in apache by following <a href="https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps" rel="nofollow noreferrer">this tutorial </a> but after configuring When I go to my localhost it says,</p>
  
  <blockquote>
    <p>Forbidden</p>
    
    <p>You don't have permission to access / on this server. Apache/2.4.18
    (Ubuntu) Server at localhost Port 80</p>
  </blockquote>
  
  <p>Please help.</p>
  
  <p>apache2.conf file:</p>
  
  <pre><code>&lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride None
      Require all denied
  &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 None
      Require all granted
  &lt;/Directory&gt;
  AccessFileName .htaccess
  
  &lt;FilesMatch "^\.ht"&gt;
      Require all denied
  &lt;/FilesMatch&gt;
  
  LogFormat "%v:%p %h %l %u %t \"%r\" %&gt;s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %O" common
  LogFormat "%{Referer}i -&gt; %U" referer
  LogFormat "%{User-agent}i" agent
  </code></pre>
  
  <p><code>etc/apache2/sites-available/flask.conf</code> file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
              ServerName 192.168.175.35
              ServerAdmin pechi@email.com
              WSGIScriptAlias / /var/www/flask/flask.wsgi
              &lt;Directory /var/www/flask/flask/&gt;
                      Order allow,deny
                      Allow from all
              &lt;/Directory&gt;
              Alias /static /var/www/flask/flask/static
              &lt;Directory /var/www/flask/flask/static/&gt;
                      Order allow,deny
                      Allow from all
              &lt;/Directory&gt;
              ErrorLog ${APACHE_LOG_DIR}/error.log
              LogLevel warn
              CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Please help, thanks in advance!. Please let me know if you need anymore details.</p>