Skip to content

Instantly share code, notes, and snippets.

@ashraf-s9s
Last active August 9, 2019 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashraf-s9s/31d2d6180a8c1b9d88bf4b88efd1a5de to your computer and use it in GitHub Desktop.
Save ashraf-s9s/31d2d6180a8c1b9d88bf4b88efd1a5de to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# ClusterControl SSH & SSE
RewriteEngine On
RewriteRule ^/clustercontrol/ssh/term$ /clustercontrol/ssh/term/ [R=301]
RewriteRule ^/clustercontrol/ssh/term/ws/(.*)$ ws://127.0.0.1:9511/ws/$1 [P,L]
RewriteRule ^/clustercontrol/ssh/term/(.*)$ http://127.0.0.1:9511/$1 [P]
RewriteRule ^/clustercontrol/sse/events/(.*)$ http://127.0.0.1:9510/events/$1 [P,L]
# Main Directories
<Directory />
Options +FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/html>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment