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

etc_apache2_sites-available_gitea.j2 777B

1234567891011121314151617181920212223
  1. <VirtualHost *:80>
  2. ServerName {{ gitea_subdomain }}.{{ item.name }}
  3. Redirect temp / https://{{ gitea_subdomain }}.{{ item.name }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ gitea_subdomain }}.{{ item.name }}
  7. SSLEngine On
  8. DocumentRoot "{{ item.doc_root }}"
  9. DirectoryIndex index.html
  10. Options -Indexes
  11. HostnameLookups Off
  12. LogLevel warn
  13. ErrorLog /var/log/apache2/gitea.info-error_log
  14. CustomLog /var/log/apache2/gitea.info-access_log common
  15. ProxyRequests Off
  16. ProxyPreserveHost On
  17. ProxyPass / http://localhost:3000/
  18. ProxyPassReverse / http://localhost:3000/
  19. </VirtualHost>