暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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>