File: //etc/apache2/sites-enabled/panigaletech.com.conf
<VirtualHost *:80>
ServerAdmin sgchowdhury@concertium.com
DocumentRoot /var/www/panigaletech.com
ServerName panigaletech.com
ServerAlias www.panigaletech.com
<Directory /var/www/panigaletech.com/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/panigaletech.com.sock|fcgi://localhost/"
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/panigaletech.com-error.log
CustomLog ${APACHE_LOG_DIR}/panigaletech.com-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.panigaletech.com [OR]
RewriteCond %{SERVER_NAME} =panigaletech.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>