Advertisement
Guest User

attributes

a guest
Nov 2nd, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Attributes file
  2. default['jenkins']['servername'] = "jenkins.schibsted.se"
  3.  
  4. template file
  5. <VirtualHost *:80>
  6. ServerName <%= node[:httpd][:servername] %>
  7. RewriteEngine on
  8. RewriteCond %{SERVER_PORT} =80
  9. RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
  10. </VirtualHost>
  11.  
  12. Server output
  13. <VirtualHost *:80>
  14. ServerName jenkins.schibsted.se
  15. RewriteEngine on
  16. RewriteCond %{SERVER_PORT} =80
  17. RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
  18. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement