Guest User

Untitled

a guest
Sep 10th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <VirtualHost _default_:80>
  2. ServerName <Jira URL>
  3.  
  4. <Location /server-status>
  5. SetHandler server-status
  6. Order deny,allow
  7. Allow from 127.0.0.1/8
  8. </Location>
  9.  
  10.  
  11. RewriteEngine On
  12.  
  13. RewriteCond %{HTTPS} off
  14. RewriteCond %{REQUEST_URI} !^/server-status
  15. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
  16. </VirtualHost>
  17.  
  18.  
  19. <VirtualHost _default_:443>
  20. ServerName <Jira URL>
  21.  
  22. #ErrorLog logs/ssl_error_log
  23. #TransferLog logs/ssl_access_log
  24. LogLevel warn
  25.  
  26. SSLEngine on
  27. SSLProtocol TLSv1.2
  28. SSLHonorCipherOrder on
  29. SSLCipherSuite "!EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM !EECDH+ECDSA+SHA384 !EECDH+ECDSA+SHA256 !EECDH+aRSA+SHA384 !EECDH+aRSA+SHA256 !EECDH+aRSA+RC4 EECDH !EDH+aRSA !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !RC4"
  30.  
  31.  
  32. SSLCertificateFile /path/to/certs/<Cert File>.pem
  33. SSL CertificateChainFile /path/to/certs/<Chain 1>.pem
  34. SSLCertificateKeyFile /path/to/keys/<Private Key>.key
  35.  
  36. <Files ~ "\.(cgi|shtml|phtml|php3?)$">
  37. SSLOptions +StdEnvVars
  38. </Files>
  39.  
  40. <Directory "/var/www/cgi-bin">
  41. SSLOptions +StdEnvVars
  42. </Directory>
  43.  
  44. ProxyRequests On
  45.  
  46. <Proxy *>
  47. Require all granted
  48. </Proxy>
  49. <Location /server-status>
  50. SetHandler server-status
  51. Order deny,allow
  52. Allow from 127.0.0.1/8
  53. </Location>
  54.  
  55. BrowserMatch "MSIE [2-5]" \
  56. nokeepalive ssl-unclean-shutdown \
  57. downgrade-1.0 force-response-1.0
  58.  
  59. #CustomLog logs/ssl_request_log \
  60. # "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  61.  
  62.  
  63. ProxyPass /server-status !
  64.  
  65. ProxyPreserveHost On
  66. ProxyPass / http://<Jira_URL>:8080/
  67. ProxyPassReverse / http://<Jira_URL>:8080/
  68. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment