Created
March 5, 2019 11:08
-
-
Save iKlotho/32bff1ad0ccfe96568751d1d1d87d723 to your computer and use it in GitHub Desktop.
apache conf redirect http to https
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 characters
< vh > | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} | |
< /vh > | |
match and redirect | |
# NC means no case makes the case-intensitive | |
RewriteCond %{REQUEST_URI} ^/events [NC] | |
RewriteRule /(.*) ws://127.0.0.1:8044/$1 [P,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment