Last active
August 9, 2019 14:14
-
-
Save ashraf-s9s/8a75769aca3c787ccb207fe63f8b43dc to your computer and use it in GitHub Desktop.
This file contains 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
<IfModule mod_ssl.c> | |
<VirtualHost _default_:443> | |
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] | |
<Directory /> | |
Options +FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/html> | |
Options +Indexes +FollowSymLinks +MultiViews | |
AllowOverride All | |
Require all granted | |
</Directory> | |
SSLEngine on | |
SSLCertificateFile /etc/pki/tls/certs/s9server.crt | |
SSLCertificateKeyFile /etc/pki/tls/private/s9server.key | |
<FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
<Directory /usr/lib/cgi-bin> | |
SSLOptions +StdEnvVars | |
</Directory> | |
BrowserMatch "MSIE [2-6]" \ | |
nokeepalive ssl-unclean-shutdown \ | |
downgrade-1.0 force-response-1.0 | |
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown | |
</VirtualHost> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment