Advertisement
daylicron

VHost

Nov 8th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. ### Distributed by puppet ###
  2.  
  3. <IfModule mod_ssl.c>
  4. <VirtualHost _default_:443>
  5.  
  6. DocumentRoot /opt/librenms/html/
  7. ServerName librenms.example.com
  8.  
  9. CustomLog /opt/librenms/logs/access_log combined
  10. ErrorLog /opt/librenms/logs/error_log
  11.  
  12. AllowEncodedSlashes NoDecode
  13. <Directory "/opt/librenms/html/">
  14. Require all granted
  15. AllowOverride All
  16. Options FollowSymLinks MultiViews
  17. </Directory>
  18.  
  19. SSLEngine on
  20. SSLCertificateFile /etc/apache2/.com.crt
  21. SSLCertificateKeyFile /etc/apache2/.com.key
  22. SSLCertificateChainFile /etc/apache2/wildcard.crt
  23.  
  24. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  25. SSLOptions +StdEnvVars
  26. </FilesMatch>
  27. <Directory /usr/lib/cgi-bin>
  28. SSLOptions +StdEnvVars
  29. </Directory>
  30.  
  31. BrowserMatch "MSIE [2-6]" \
  32. nokeepalive ssl-unclean-shutdown \
  33. downgrade-1.0 force-response-1.0
  34. # MSIE 7 and newer should be able to use keepalive
  35. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  36.  
  37. # RewriteEngine on
  38. # LogLevel alert rewrite:trace3 alias:debug
  39.  
  40. <FilesMatch \.php$>
  41. SetHandler "proxy:unix:/run/php/php7.0-fpm.sock|fcgi://localhost"
  42. </FilesMatch>
  43. </VirtualHost>
  44. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement