Skip to content

Instantly share code, notes, and snippets.

@khasky
Created July 22, 2020 11:50
Show Gist options
  • Select an option

  • Save khasky/c7404ec6b58d6af44afd3c7ec6a7bf04 to your computer and use it in GitHub Desktop.

Select an option

Save khasky/c7404ec6b58d6af44afd3c7ec6a7bf04 to your computer and use it in GitHub Desktop.

Revisions

  1. khasky revised this gist Jul 22, 2020. No changes.
  2. khasky created this gist Jul 22, 2020.
    13 changes: 13 additions & 0 deletions khasky.com.conf
    Original 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>