Advertisement
chrissharp123

Untitled

Aug 21st, 2018
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. /etc/apache2/sites-available/eg.conf (bottom of file):
  2.  
  3. # ----------------------------------------------------------------------------------
  4. # Set up our SSL virtual host
  5. # ----------------------------------------------------------------------------------
  6. #Listen 443
  7. <VirtualHost *:7443>
  8. DocumentRoot "/openils/var/web"
  9. ServerName localhost:443
  10. ServerAlias 127.0.0.1:443
  11. SSLEngine on
  12. SSLProxyEngine on # required for ErrorDocument 404 on SSL connections
  13. SSLHonorCipherOrder On
  14. SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH:!AESGCM
  15.  
  16. # If you don't have an SSL cert, you can create self-signed
  17. # certificate and key with:
  18. # openssl req -new -x509 -nodes -out server.crt -keyout server.key
  19. SSLCertificateFile ssl/server.crt
  20. SSLCertificateKeyFile ssl/server.key
  21. SSLCACertificateFile ssl/ca.crt
  22.  
  23. # - absorb the shared virtual host settings
  24. Include eg_vhost.conf
  25.  
  26. # help IE along with SSL pages
  27. SetEnvIf User-Agent ".*MSIE [1-5].*" \
  28. nokeepalive ssl-unclean-shutdown \
  29. downgrade-1.0 force-response-1.0
  30.  
  31. SetEnvIf User-Agent ".*MSIE [6-9].*" \
  32. ssl-unclean-shutdown
  33.  
  34. </VirtualHost>
  35.  
  36. # ----------------------------------------------------------------------------------
  37. # Set up our main virtual host
  38. # Port 80 comes after 443 to avoid "unknown protocol speaking not SSL to HTTPS port!?"
  39. # errors, per http://wiki.apache.org/httpd/InternalDummyConnection
  40. # ----------------------------------------------------------------------------------
  41.  
  42. <VirtualHost *:7080>
  43. ServerName localhost:80
  44. ServerAlias 127.0.0.1:80
  45. DocumentRoot /openils/var/web/
  46. DirectoryIndex index.html index.xhtml
  47. # - absorb the shared virtual host settings
  48. Include eg_vhost.conf
  49. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement