瀏覽代碼

fix apache config

master
父節點
當前提交
e6dcc97c97
共有 1 個文件被更改,包括 16 次插入17 次删除
  1. +16
    -17
      templates/apache2-vhost.conf.j2

+ 16
- 17
templates/apache2-vhost.conf.j2 查看文件

@@ -1,22 +1,21 @@
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
{{ ansible_managed | comment }}

DocumentRoot /var/www/html
<VirtualHost *:443>
ServerName {{postfixadmin_server_name}}

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

SSLEngine on
SSLCertificateFile "{{postfixadmin_certificate_fullchain_file}}"
SSLCertificateKeyFile "{{postfixadmin_certificate_private_key_file}}"
SSLEngine on
SSLCertificateFile "{{postfixadmin_certificate_fullchain_file}}"
SSLCertificateKeyFile "{{postfixadmin_certificate_private_key_file}}"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
DocumentRoot /var/www/default/
<Directory "/var/www/default/">
Options -Indexes
</Directory>

</VirtualHost>
</IfModule>
Alias /postfixadmin /usr/share/postfixadmin/public
Redirect /postfixadmin/public /postfixadmin

</VirtualHost>

Loading…
取消
儲存