Guest User

Untitled

a guest
Sep 28th, 2020
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. <VirtualHost _default_:443>
  2.  
  3. # General setup for the virtual host
  4. DocumentRoot "C:\xampp\htdocs"
  5. ServerName example.com
  6. ServerAlias *.example.com
  7.  
  8. LogLevel debug ssl:info
  9. ErrorLog "/xampp/apache/logs/error.log"
  10. TransferLog "/xampp/apache/logs/access.log"
  11. ErrorLog /xampp/apache/logs/exmaple_error_https.log
  12. CustomLog /xampp/apache/logs/example_access_https.log combined
  13.  
  14. # SSL Engine Switch:
  15. # Enable/Disable SSL for this virtual host.
  16. SSLEngine on
  17.  
  18. SSLCertificateFile "C:\xampp\apache\ssl\ix.crt"
  19. #SSLCertificateFile "conf/ssl.crt/server.crt"
  20. #SSLCertificateFile "conf/ssl.crt/server.crt"
  21.  
  22. SSLCertificateKeyFile "C:\xampp\apache\ssl\ix.key"
  23. #SSLCertificateKeyFile "conf/ssl.key/server.key"
  24. #SSLCertificateKeyFile "conf/ssl.key/server.key"
  25. #SSLCertificateChainFile "${SRVROOT}/conf/server-ca.crt"
  26.  
  27.  
  28. SSLVerifyClient require
  29. SSLVerifyDepth 1
  30. SSLCACertificateFile "C:\xampp\apache\ssl\origin-pull-ca.pem"
  31.  
  32. SSLProxyEngine on
  33. # Redirect Socket.io connection to the Correct URL
  34. RewriteEngine On
  35. RewriteCond %{REQUEST_URI} ^/socket.io [NC]
  36. RewriteCond %{QUERY_STRING} transport=websocket [NC]
  37. RewriteCond %{HTTP:Upgrade} websocket [NC]
  38. RewriteCond %{HTTP:Connection} upgrade [NC]
  39. RewriteRule /(.*) ws://127.0.0.1:2096/$1 [P,L]
  40.  
  41.  
  42. ProxyPass "/shut" "http://127.0.0.1:2096/shut"
  43. ProxyPassReverse "/shut" "http://127.0.0.1:2096/shut"
  44.  
  45. # Normal HTTPS Connection
  46. ProxyPass "/" "http://127.0.0.1:2096/"
  47. ProxyPassReverse "/" "http://127.0.0.1:2096/"
  48.  
  49. SSLProxyCACertificateFile "C:\xampp\apache\ssl\origin-pull-ca.pem"
  50.  
  51. # Certificate Authority (CA):
  52. #SSLCACertificatePath "${SRVROOT}/conf/ssl.crt"
  53. #SSLCACertificateFile "${SRVROOT}/conf/ssl.crt/ca-bundle.crt"
  54.  
  55. # Certificate Revocation Lists (CRL):
  56. #SSLCARevocationPath "${SRVROOT}/conf/ssl.crl"
  57. #SSLCARevocationFile "${SRVROOT}/conf/ssl.crl/ca-bundle.crl"
  58. #SSLCARevocationCheck chain
  59.  
  60. # Client Authentication (Type):
  61. #SSLVerifyClient require
  62. #SSLVerifyDepth 10
  63.  
  64. # TLS-SRP mutual authentication:
  65. #SSLSRPVerifierFile "${SRVROOT}/conf/passwd.srpv"
  66.  
  67. # Access Control:
  68. #<Location />
Add Comment
Please, Sign In to add comment