Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eyalcohen4/4bcc93d640746c59ba48bf7e6a8162d1 to your computer and use it in GitHub Desktop.
Save eyalcohen4/4bcc93d640746c59ba48bf7e6a8162d1 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/student/public_html
ServerName test.eyal.website
Redirect permanent / https://test.co.il
<Directory /var/www/student/public_html>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =test.co.il
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment