Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_apache2_sites-available_blog.j2 610B

123456789101112131415161718192021222324
  1. <VirtualHost *:80>
  2. ServerName {{ item.name }}
  3. ServerAlias www.{{ item.name }}
  4. Redirect temp / https://www.{{ item.name }}/
  5. </VirtualHost>
  6. <VirtualHost *:443>
  7. ServerName {{ item.name }}
  8. Redirect temp / https://www.{{ item.name }}/
  9. </VirtualHost>
  10. <VirtualHost *:443>
  11. ServerAlias www.{{ item.name }}
  12. SSLEngine On
  13. DocumentRoot "{{ item.doc_root }}"
  14. DirectoryIndex index.html
  15. Options -Indexes
  16. HostnameLookups Off
  17. php_admin_flag engine On
  18. ErrorDocument 404 /404.html
  19. </VirtualHost>