title: Laravel 5.4 application 403 error
body: <p>I'm experiencing this situation where my Laravel 5.4 based website suddenly gives 403 errors saying: </p>
  
  <blockquote>
    <p>Forbidden. You dont have permission to access / on this server.</p>
  </blockquote>
  
  <p>But, when I clear the cookies for the website using the developer tools and refresh, it works fine.</p>
  
  <p>I'm using a CentOS (CWP) + Apache + PHP + MySQL configuration where the following is my Virtual Host for the website.</p>
  
  <pre><code>&lt;VirtualHost xxx.xxx.xx.xxx:80&gt;
      ServerName mywebsite.lk
      ServerAlias www.mywebsite.lk
      ServerAdmin webmaster@mywebsite.lk
      DocumentRoot /home/mywebsite/public_html
      UseCanonicalName Off
      ScriptAlias /cgi-bin/ /home/mywebsite/public_html/cgi-bin/
  
      # Custom settings are loaded below this line (if any exist)
      # Include "/usr/local/apache/conf/userdata/mywebsite/mywebsite.lk/*.conf
  
      &lt;IfModule mod_userdir.c&gt;
          UserDir disabled
          UserDir enabled mywebsite
      &lt;/IfModule&gt;
  
      &lt;IfModule mod_suexec.c&gt;
          SuexecUserGroup mywebsite mywebsite
      &lt;/IfModule&gt;
  
      &lt;IfModule mod_suphp.c&gt;
          suPHP_UserGroup mywebsite mywebsite 
          suPHP_ConfigPath /home/mywebsite 
      &lt;/IfModule&gt;
  
      &lt;Directory "/home/mywebsite/public_html"&gt;
          AllowOverride All
                  Require all granted
      &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>What could be the problem? Any clues and suggestions from the experts out there are highly appreciated.</p>
  
  <p>Thank you!</p>