Skip to content

Instantly share code, notes, and snippets.

@iKlotho
Created March 5, 2019 11:08
Show Gist options
  • Save iKlotho/32bff1ad0ccfe96568751d1d1d87d723 to your computer and use it in GitHub Desktop.
Save iKlotho/32bff1ad0ccfe96568751d1d1d87d723 to your computer and use it in GitHub Desktop.
apache conf redirect http to https
< 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