HSAdmin Backend Domains, E-Mail, Datenbanken
Purodha
2013-03-07 b2b192833ce58101b91910798d206b01216d39fc
commit | author | age
6208e0 1
PH 2 # This file is managed by HSAdmin.
3 # Do not edit manually. Changes will be overwritten.
4 #
5
6 <VirtualHost ${pac.curINetAddr.inetAddr}:80 ${pac.oldINetAddr.inetAddr}:80>
7
8     ServerName ${dom.name}
9     ServerAlias *.${dom.name}
10     ServerAdmin webmaster@${dom.name}
11
12     SuexecUserGroup ${dom.user.name} ${pac.name}
13
14     DocumentRoot /home/doms/${dom.name}/htdocs
15
16 #if( ${pac.dynamicWeb} || ${dom.pacDomain} )
17     Alias /cgi-bin/ /home/doms/${dom.name}/cgi/
18     Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi/
19 #end
20
21     <Directory />
22         Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch
23     </Directory>
24
25     <Directory /home/doms/${dom.name}/>
26         AllowOverride AuthConfig FileInfo Indexes Limit
27     </Directory>
28
29 #if( ${pac.dynamicWeb} || ${dom.pacDomain} )
30     <Location /cgi-bin/>
31         SetHandler cgi-script
32         Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch
33     </Location>
34
35     <Location /fastcgi-bin/>
36         SetHandler fcgid-script
37         Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch
38     </Location>
39 #else
40     <Location /cgi-bin/>
41         Redirect 501 /
42     </Location>
43
44     <Location /fastcgi-bin/>
45         Redirect 501 /
46     </Location>
47 #end
48
49     RewriteEngine On
50     RewriteOptions Inherit
51
52     RewriteCond %{REQUEST_URI} !^/cgi-bin/
53     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/    
747bf3 54     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?\$ [novary]
PH 55     RewriteCond /home/doms/${dom.name}/subs/#[[${tolower:%1} ]]# -d
56     RewriteRule ^(.*) /home/doms/${dom.name}/subs/#[[${tolower:%1}$1 ]]# [last]     
6208e0 57     
PH 58 #if( !${htdocsfallback} )
59     RewriteCond %{REQUEST_URI} !^/cgi-bin/
60     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
747bf3 61     RewriteCond %{HTTP_HOST} ^(.+)\.{DOM_HOSTNAME}\.?(:80)?$ [novary]
PH 62     RewriteCond /home/doms/${dom.name}/subs/#[[${tolower:%1} ]]# !-d
6208e0 63     RewriteRule ^(.*) - [redirect=404,last]
PH 64 #end
65
66 #if( ${pac.dynamicWeb} || ${dom.pacDomain} )
67     AddType application/x-httpd-php .php .php5 .php4 .php3
68     Action application/x-httpd-php /fastcgi-bin/phpstub
69 #end
70
71 </VirtualHost>
72
73 <VirtualHost ${pac.curINetAddr.inetAddr}:443 ${pac.oldINetAddr.inetAddr}:443>
74
75     ServerName ${dom.name}
76     ServerAlias *.${dom.name}
77     ServerAdmin ${dom.user.name}@${dom.name}
78
79     SuexecUserGroup ${dom.user.name} ${pac.name}
80
81     SSLEngine On
82     SSLCertificateFile /etc/apache2/pems/default.pem
83     SSLCertificateChainFile /etc/apache2/pems/default.chain.pem
84     SSLCertificateFile /etc/apache2/pems/${pac.name}.pem
85     SSLCertificateChainFile /etc/apache2/pems/${pac.name}.chain.pem
86
87     DocumentRoot /home/doms/${dom.name}/htdocs-ssl
88
89 #if( ${pac.dynamicWeb} || ${dom.pacDomain} )
90     Alias /cgi-bin/ /home/doms/${dom.name}/cgi-ssl/
91     Alias /fastcgi-bin/ /home/doms/${dom.name}/fastcgi-ssl/
92 #end
93
94     <Directory />
95         SSLRequireSSL On
96         Options -ExecCGI ${includes} ${indexes} ${multiviews} +SymLinksIfOwnerMatch
97     </Directory>
98
99     <Directory /home/doms/${dom.name}/>
100         AllowOverride AuthConfig FileInfo Indexes Limit
101     </Directory>
102
103 #if( ${pac.dynamicWeb} || ${dom.pacDomain} )
104     <Location /cgi-bin/>
105         SetHandler cgi-script
106         Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch
107     </Location>
108
109     <Location /fastcgi-bin/>
110         SetHandler fcgid-script
111         Options +ExecCGI ${includes} -Indexes -MultiViews +SymLinksIfOwnerMatch
112     </Location>
113 #else
114     <Location /cgi-bin/>
115         Redirect 501 /
116     </Location>
117
118     <Location /fastcgi-bin/>
119         Redirect 501 /
120     </Location>
121 #end
122     
123     RewriteEngine On
124     RewriteOptions Inherit
125     
126     RewriteCond %{REQUEST_URI} !^/cgi-bin/
127     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/    
747bf3 128     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:[0-9]+)?$ [novary]
PH 129     RewriteCond /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1} ]]# -d
130     RewriteRule ^(.*) /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1}$1 ]]# [last]    
6208e0 131     
PH 132 #if( !${htdocsfallback} )
133     RewriteCond %{REQUEST_URI} !^/cgi-bin/
134     RewriteCond %{REQUEST_URI} !^/fastcgi-bin/
747bf3 135     RewriteCond %{HTTP_HOST} ^(.+)\.${dom.name}\.?(:443)?$ [novary]
PH 136     RewriteCond /home/doms/${dom.name}/subs-ssl/#[[${tolower:%1} ]]# !-d
6208e0 137     RewriteRule ^(.*) - [redirect=404,last]
PH 138 #end
139
140 #if( ${pac.dynamicWeb} || ${dom.pacDomain} )
141     AddType application/x-httpd-php .php .php5 .php4 .php3
142     Action application/x-httpd-php /fastcgi-bin/phpstub
143 #end
144
145 </VirtualHost>