HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2020-06-13 3917038c0ee64a135729fc07c04b78c6e7fd482e
commit | author | age
c09e9b 1 #
6208e0 2 # This file is managed by HSAdmin.
PH 3 # Do not edit manually. Changes will be overwritten.
4 #
5
b0fca5 6 <VirtualHost ${pac.curINetAddr.inet4Addr}:80 ${pac.oldINetAddr.inet4Addr}:80 [${pac.curINetAddr.inet6Addr}]:80 [${pac.oldINetAddr.inet6Addr}]:80>
6208e0 7     ServerName ${dom.name}
bf2b35 8     ServerAlias ${dom.serveraliases}
6208e0 9     ServerAdmin webmaster@${dom.name}
PH 10
11     SuexecUserGroup ${dom.user.name} ${pac.name}
12
bf2b35 13     PassengerEnabled Off
ee5e33 14     PassengerUser ${dom.user.name}
MH 15     PassengerGroup ${pac.name}
16     PassengerAppRoot /home/doms/${dom.name}/app/
17
6208e0 18     DocumentRoot /home/doms/${dom.name}/htdocs
PH 19
20     Alias /cgi-bin/ /home/doms/${dom.name}/cgi/
21     Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi/
22
23     <Directory />
46a14f 24         PassengerEnabled Off
6208e0 25         Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch
PH 26     </Directory>
27
28     <Directory /home/doms/${dom.name}/>
46a14f 29         PassengerEnabled On
f423b9 30         AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,IncludesNoExec,Indexes,MultiViews,SymLinksIfOwnerMatch,PassengerNodejs,PassengerPython,PassengerRuby,PassengerAppEnv
6208e0 31     </Directory>
PH 32
33     <Location /cgi-bin/>
46a14f 34         PassengerEnabled Off
6208e0 35         SetHandler cgi-script
340686 36         Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
6208e0 37     </Location>
PH 38
39     <Location /fastcgi-bin/>
46a14f 40         PassengerEnabled Off
6208e0 41         SetHandler fcgid-script
340686 42         Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
6208e0 43     </Location>
PH 44
28ca6a 45 #if( ${autoconfig} )
PH 46     <Location /autodiscover/autodiscover.xml>
47         ProxyPreserveHost Off
3b6e38 48         ProxyPass http://127.0.0.1:8082/
28ca6a 49     </Location>
PH 50
51     <Location /.well-known/autoconfig/mail/config-v1.1.xml>
52         ProxyPreserveHost Off
3b6e38 53         ProxyPass http://127.0.0.1:8081/
28ca6a 54     </Location>
PH 55 #end
56
6208e0 57     RewriteEngine On
PH 58     RewriteOptions Inherit
59
60     RewriteCond %{REQUEST_URI} !^/cgi-bin/
bf2b35 61     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
2e99a9 62     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary]
747bf3 63     RewriteCond /home/doms/${dom.name}/subs/#[[${tolower:%1} ]]# -d
c09e9b 64     RewriteRule ^(.*) /home/doms/${dom.name}/subs/#[[${tolower:%1}$1 ]]# [last]
MH 65
6208e0 66 #if( !${htdocsfallback} )
PH 67     RewriteCond %{REQUEST_URI} !^/cgi-bin/
7a0aad 68     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
89b2b3 69     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:80)?$ [novary]
747bf3 70     RewriteCond /home/doms/${dom.name}/subs/#[[${tolower:%1} ]]# !-d
6208e0 71     RewriteRule ^(.*) - [redirect=404,last]
c09e9b 72
6365b4 73 #end
6208e0 74     AddType application/x-httpd-php .php .php5 .php4 .php3
PH 75     Action application/x-httpd-php /fastcgi-bin/phpstub
76 </VirtualHost>
77
b0fca5 78 <VirtualHost ${pac.curINetAddr.inet4Addr}:443 ${pac.oldINetAddr.inet4Addr}:443 [${pac.curINetAddr.inet6Addr}]:443 [${pac.oldINetAddr.inet6Addr}]:443>
6208e0 79     ServerName ${dom.name}
bf2b35 80     ServerAlias ${dom.serveraliases}
a62974 81     ServerAdmin webmaster@${dom.name}
6208e0 82
PH 83     SuexecUserGroup ${dom.user.name} ${pac.name}
c09e9b 84
bf2b35 85     PassengerEnabled Off
ee5e33 86     PassengerUser ${dom.user.name}
MH 87     PassengerGroup ${pac.name}
88     PassengerAppRoot /home/doms/${dom.name}/app-ssl/
6208e0 89
PH 90     SSLEngine On
2c91cd 91     SSLCertificateFile /etc/apache2/pems-enabled/${dom.name}.crt
PH 92     SSLCertificateKeyFile /etc/apache2/pems-enabled/${dom.name}.key
93     SSLCertificateChainFile /etc/apache2/pems-enabled/${dom.name}.chain
c09e9b 94
6208e0 95     DocumentRoot /home/doms/${dom.name}/htdocs-ssl
PH 96
97     Alias /cgi-bin/ /home/doms/${dom.name}/cgi-ssl/
98     Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi-ssl/
99
100     <Directory />
66113d 101         SSLRequireSSL On
46a14f 102         PassengerEnabled Off
6208e0 103         Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch
PH 104     </Directory>
105
106     <Directory /home/doms/${dom.name}/>
10baac 107         PassengerEnabled On
f423b9 108         AllowOverride AuthConfig FileInfo Indexes Limit Options=ExecCGI,IncludesNoExec,Indexes,MultiViews,SymLinksIfOwnerMatch,PassengerNodejs,PassengerPython,PassengerRuby,PassengerAppEnv
6208e0 109     </Directory>
PH 110
111     <Location /cgi-bin/>
10baac 112         PassengerEnabled Off
6208e0 113         SetHandler cgi-script
340686 114         Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
6208e0 115     </Location>
PH 116
117     <Location /fastcgi-bin/>
a62974 118         PassengerEnabled Off
6208e0 119         SetHandler fcgid-script
340686 120         Options +ExecCGI +IncludesNoExec -Indexes -MultiViews +SymLinksIfOwnerMatch
6208e0 121     </Location>
c09e9b 122
28ca6a 123 #if( ${autoconfig} )
PH 124     <Location /autodiscover/autodiscover.xml>
125         ProxyPreserveHost Off
3b6e38 126         ProxyPass http://127.0.0.1:8082/
28ca6a 127     </Location>
PH 128
129     <Location /.well-known/autoconfig/mail/config-v1.1.xml>
130         ProxyPreserveHost Off
3b6e38 131         ProxyPass http://127.0.0.1:8081/
28ca6a 132     </Location>
PH 133 #end
134
6208e0 135     RewriteEngine On
PH 136     RewriteOptions Inherit
b294f9 137
6208e0 138     RewriteCond %{REQUEST_URI} !^/cgi-bin/
c09e9b 139     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
747bf3 140     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary]
PH 141     RewriteCond /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1} ]]# -d
c09e9b 142     RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1}$1 ]]# [last]
MH 143
6208e0 144 #if( !${htdocsfallback} )
PH 145     RewriteCond %{REQUEST_URI} !^/cgi-bin/
7a0aad 146     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
747bf3 147     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:443)?$ [novary]
PH 148     RewriteCond /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1} ]]# !-d
6208e0 149     RewriteRule ^(.*) - [redirect=404,last]
c09e9b 150
6208e0 151 #end
PH 152     AddType application/x-httpd-php .php .php5 .php4 .php3
153     Action application/x-httpd-php /fastcgi-bin/phpstub
d24c19 154
6208e0 155 </VirtualHost>