Created
July 22, 2020 11:50
-
-
Save khasky/c7404ec6b58d6af44afd3c7ec6a7bf04 to your computer and use it in GitHub Desktop.
Revisions
-
khasky revised this gist
Jul 22, 2020 . No changes.There are no files selected for viewing
-
khasky created this gist
Jul 22, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <VirtualHost *:80> ServerAdmin [email protected] ServerName khasky.com ServerAlias www.khasky.com DocumentRoot /var/www/khasky.com/public_html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} =khasky.com [OR] RewriteCond %{SERVER_NAME} =www.khasky.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>