Skip to content

Instantly share code, notes, and snippets.

@bmanojlovic
Created February 20, 2014 14:16
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 bmanojlovic/9114556 to your computer and use it in GitHub Desktop.
Save bmanojlovic/9114556 to your computer and use it in GitHub Desktop.
<VirtualHost _default_:80>
ServerName graylog.company.com
Redirect permanent / https://graylog.company.com/
</VirtualHost>
##
## SSL Virtual Host Context
##
<IfDefine SSL>
<IfDefine !NOSSL>
<VirtualHost _default_:443>
ServerName graylog.company.com
ServerAdmin admin@company.com
ProxyPass /graylog2-stream-dashboard !
ProxyPass / http://10.10.10.26:9000/
ProxyPreserveHost On
ProxyPassReverse / http://10.10.10.26:9000/
ErrorLog /var/log/apache2/error_log
LogLevel error
CustomLog /var/log/apache2/access_log combined
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
SSLCACertificateFile /etc/apache2/ssl.crt/cacert.pem
SSLCertificateFile /etc/apache2/ssl.crt/graylog.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/graylog.key
Alias /graylog2-stream-dashboard "/usr/share/graylog2-stream-dashboard"
<Directory "/usr/share/graylog2-stream-dashboard">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from 127.0.0.1
Allow from 192.168.0.0/16
Allow from 10.0.0.0/8
</Directory>
</VirtualHost>
</IfDefine>
</IfDefine>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment