Skip to content

Instantly share code, notes, and snippets.

@arthurzenika
Created November 6, 2014 09:23
Show Gist options
  • Save arthurzenika/7b132720ab6b8b728e79 to your computer and use it in GitHub Desktop.
Save arthurzenika/7b132720ab6b8b728e79 to your computer and use it in GitHub Desktop.
/etc/apache2/sites-available/openstack-dashboard-ssl-redirect.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
AllowOverride None
</Directory>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment