<VirtualHost *:80>
  ServerName codersbunch.com
  ServerAlias www.codersbunch.com
  RewriteEngine On
#RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
DocumentRoot /root/company_website/coders-bunch/website/

    <Directory /root/company_website/coders-bunch/website/>
            DirectoryIndex index.html default.php welcome.php index.php
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog /var/log/apache2/codersbunch.com-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel error

    CustomLog /var/log/apache2/codersbunch.com-access.log combined
RewriteCond %{SERVER_NAME} =codersbunch.com [OR]
RewriteCond %{SERVER_NAME} =www.codersbunch.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

