Created
April 1, 2018 10:25
-
-
Save yumetodo/11ead23aee869f5f9ff7dfc4618c458e to your computer and use it in GitHub Desktop.
For Apache 2.4.
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
<VirtualHost *:80> | |
ServerName netdata.irregular-at-tus.work | |
ServerAdmin https://qiitadon.com/@yumetodo | |
DocumentRoot /usr/share/netdata/web/ | |
Redirect permanent "/" "https://netdata.irregular-at-tus.work/" | |
ErrorLog /home/for_netdata/logs/netdata-error.log | |
CustomLog /home/for_netdata/logs/netdata-access.log combined | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName netdata.irregular-at-tus.work | |
ServerAdmin https://qiitadon.com/@yumetodo | |
DocumentRoot /usr/share/netdata/web/ | |
SSLEngine On | |
SSLCertificateFile /etc/letsencrypt/live/netdata.irregular-at-tus.work/cert.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/netdata.irregular-at-tus.work/privkey.pem | |
SSLProtocol all -SSLv2 -SSLv3 | |
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains" | |
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
Require all granted | |
</Proxy> | |
# Local 127.0.0.1:19999 netdata server accessed with '/' | |
ProxyPass "/" "http://127.0.0.1:19999/" connectiontimeout=5 timeout=30 | |
ProxyPassReverse "/" "http://127.0.0.1:19999/" | |
<Location /> | |
AuthType Digest | |
AuthName "Digest Auth" | |
AuthUserFile /etc/apache2/.htdigest | |
Require valid-user | |
</Location> | |
<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 | |
ErrorLog /home/for_netdata/logs/netdata-error.log | |
CustomLog /home/for_netdata/logs/netdata-access.log combined | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment