Advertisement
Guest User

Untitled

a guest
May 8th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # tempalate
  2. {% set listen = '' %}
  3. {% for ip in pillar['apache_vhosts']['default']['interfaces'] %}
  4. Listen {{ grains['ip_interfaces'][ip][0]}}:8080
  5. NameVirtualHost {{ grains['ip_interfaces'][ip][0]}}:8080
  6. {% set listen = listen + grains['ip_interfaces'][ip][0] + ":8080 " %}
  7. {% endfor %}
  8. <VirtualHost {{ listen }}>
  9.  
  10. # output
  11. Listen 10.10.10.10:8080
  12. NameVirtualHost 10.10.10.10:8080
  13. Listen 127.0.0.1:8080
  14. NameVirtualHost 127.0.0.1:8080
  15. <VirtualHost >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement