Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <VirtualHost *:80>
  2.  
  3. ServerAdmin [email protected]
  4. Servername redmine.xxx.cz
  5. DocumentRoot /var/www/html/
  6.  
  7. <Location /redmine>
  8. RailsEnv production
  9. RackBaseURI /redmine
  10. Options -MultiViews
  11. </Location>
  12.  
  13. RewriteEngine on
  14. RewriteCond %{SERVER_NAME} =redmine.xxx.cz
  15. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  16. </VirtualHost>
  17.  
  18. <VirtualHost *:443>
  19.  
  20. ServerAdmin [email protected]
  21. Servername redmine.xxx.cz
  22. DocumentRoot /var/www/html/
  23.  
  24. <Location /redmine>
  25. RailsEnv production
  26. RackBaseURI /redmine
  27. Options -MultiViews
  28. </Location>
  29.  
  30. SSLEngine on
  31.  
  32. SSLCertificateFile /etc/letsencrypt/live/redmine.xxx.cz/fullchain.pem
  33. SSLCertificateKeyFile /etc/letsencrypt/live/redmine.xxxx.cz/privkey.pem
  34. Include /etc/letsencrypt/options-ssl-apache.conf
  35. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement