﻿<IfModule mod_ssl.c>
           <VirtualHost *:443>
          ServerAdmin antonyodu@gmail.com
          ServerName api.payraty.com
          DocumentRoot /var/www/payraty/payraty-core-api/public

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

          <Directory /var/www/payraty/payraty-core-api>
              Require all granted
              AllowOverride All
              Options Indexes Multiviews FollowSymLinks
              </Directory>
          RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

# RewriteCond %{SERVER_NAME} =api.payraty.net
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/api.payraty.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/api.payraty.com/privkey.pem
</VirtualHost>
</IfModul