Skip to content

Instantly share code, notes, and snippets.

@cPLevey
Created July 29, 2016 05:19
Show Gist options
  • Save cPLevey/961b8d23ef5340569b769ace505c4e89 to your computer and use it in GitHub Desktop.
Save cPLevey/961b8d23ef5340569b769ace505c4e89 to your computer and use it in GitHub Desktop.
Hostname SSL Apache 2.4 Template Diff Ouput
--- main.default 2016-06-23 13:19:00.883000238 +0000
+++ main.local 2016-07-29 05:15:36.027000098 +0000
@@ -445,7 +445,7 @@
[%- END %]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$
- RewriteCond %{HTTP_HOST} ^cpanel.
+ ## RewriteCond %{HTTP_HOST} ^cpanel. ## REMOVED
RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P]
RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$
@@ -555,7 +555,7 @@
[% END %]
</IfModule>
RewriteCond %{HTTP_HOST} !^[% wildcard_safe(servername) %]$
- RewriteCond %{HTTP_HOST} ^cpanel.
+ ## RewriteCond %{HTTP_HOST} ^cpanel. ## REMOVED
RewriteCond %{HTTPS} on
RewriteRule ^/(.*) https://127.0.0.1:2083/$1 [P]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment