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

etc_apache2_sites-available_blog.j2 420B

12345678910111213141516171819
  1. <VirtualHost *:80>
  2. ServerName {{ domain }}
  3. ServerAlias www.{{ domain }}
  4. Redirect permanent / https://{{ domain }}/
  5. </VirtualHost>
  6. <VirtualHost *:443>
  7. ServerName {{ domain }}
  8. ServerAlias www.{{ domain }}
  9. SSLEngine On
  10. DocumentRoot "/var/www/{{ domain }}"
  11. DirectoryIndex index.html
  12. Options -Indexes
  13. HostnameLookups Off
  14. </VirtualHost>