﻿           <VirtualHost *:80>
          ServerAdmin antonyodu@gmail.com
          ServerName accounting.payraty.com
          DocumentRoot /var/www/payraty/accounting_main/public

       ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined

          <Directory /var/www/payraty/accounting_main>
              Require all granted
              AllowOverride All
              Options Indexes Multiviews FollowSymLinks
              </Directory>
          RewriteEngine on
RewriteCond %{SERVER_NAME} =accounting.payraty.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost