File: //opt/bad/dev1.srv.4kls.com.conf
<VirtualHost *:80>
ServerName dev2.srv.4kls.com
DocumentRoot /home/safarimaris/home/safarimaris/frontend/web
<Directory /home/safarimaris/home/safarimaris/frontend/web>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/usr/local/php5.6/var/run/php-fpm.sock|fcgi://localhost"
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/safarimaris.com-error.log
CustomLog ${APACHE_LOG_DIR}/safarimaris.com-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =dev2.srv.4kls.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>