Skip to content

Commit a993836

Browse files
committed
Add mail webmail templates.
1 parent 4e41171 commit a993836

File tree

4 files changed

+168
-0
lines changed

4 files changed

+168
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<VirtualHost %ip%:%web_ssl_port%>
2+
ServerName %webmail_vhost%
3+
Alias / /var/lib/roundcube/
4+
Alias /error/ %home%/%user%/web/%domain%/document_errors/
5+
#SuexecUserGroup %user% %group%
6+
7+
SSLEngine on
8+
SSLVerifyClient none
9+
SSLCertificateFile %home%/%user%/conf/mail/%domain%/ssl/%domain%.crt
10+
SSLCertificateKeyFile %home%/%user%/conf/mail/%domain%/ssl/%domain%.key
11+
12+
IncludeOptional %home%/%user%/conf/web/%domain%/apache2.forcessl.conf*
13+
14+
<Directory "/usr/share/tinymce/www/">
15+
Options Indexes MultiViews FollowSymLinks
16+
AllowOverride None
17+
Order allow,deny
18+
allow from all
19+
</Directory>
20+
21+
<Directory /var/lib/roundcube/>
22+
Options +FollowSymLinks
23+
# This is needed to parse /var/lib/roundcube/.htaccess. See its
24+
# content before setting AllowOverride to None.
25+
AllowOverride All
26+
order allow,deny
27+
allow from all
28+
</Directory>
29+
30+
# Protecting basic directories:
31+
<Directory /var/lib/roundcube/config>
32+
Options -FollowSymLinks
33+
AllowOverride None
34+
</Directory>
35+
36+
<Directory /var/lib/roundcube/temp>
37+
Options -FollowSymLinks
38+
AllowOverride None
39+
Order allow,deny
40+
Deny from all
41+
</Directory>
42+
43+
<Directory /var/lib/roundcube/logs>
44+
Options -FollowSymLinks
45+
AllowOverride None
46+
Order allow,deny
47+
Deny from all
48+
</Directory>
49+
</VirtualHost>
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<VirtualHost %ip%:%web_port%>
2+
ServerName %webmail_vhost%
3+
Alias / /var/lib/roundcube/
4+
Alias /error/ %home%/%user%/web/%domain%/document_errors/
5+
#SuexecUserGroup %user% %group%
6+
7+
IncludeOptional %home%/%user%/conf/web/%domain%/apache2.forcessl.conf*
8+
9+
<Directory "/usr/share/tinymce/www/">
10+
Options Indexes MultiViews FollowSymLinks
11+
AllowOverride None
12+
Order allow,deny
13+
allow from all
14+
</Directory>
15+
16+
<Directory /var/lib/roundcube/>
17+
Options +FollowSymLinks
18+
# This is needed to parse /var/lib/roundcube/.htaccess. See its
19+
# content before setting AllowOverride to None.
20+
AllowOverride All
21+
order allow,deny
22+
allow from all
23+
</Directory>
24+
25+
# Protecting basic directories:
26+
<Directory /var/lib/roundcube/config>
27+
Options -FollowSymLinks
28+
AllowOverride None
29+
</Directory>
30+
31+
<Directory /var/lib/roundcube/temp>
32+
Options -FollowSymLinks
33+
AllowOverride None
34+
Order allow,deny
35+
Deny from all
36+
</Directory>
37+
38+
<Directory /var/lib/roundcube/logs>
39+
Options -FollowSymLinks
40+
AllowOverride None
41+
Order allow,deny
42+
Deny from all
43+
</Directory>
44+
</VirtualHost>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
server {
2+
listen %ip%:%proxy_ssl_port% ssl http2;
3+
server_name %domain_idn% %alias_idn%;
4+
ssl_certificate %ssl_pem%;
5+
ssl_certificate_key %ssl_key%;
6+
error_log /var/log/%web_system%/domains/%domain%.error.log error;
7+
8+
location / {
9+
proxy_pass https://%ip%:%web_ssl_port%;
10+
location ~* ^.+\.(%proxy_extentions%)$ {
11+
root %sdocroot%;
12+
access_log /var/log/%web_system%/domains/%domain%.log combined;
13+
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
14+
expires max;
15+
try_files $uri @fallback;
16+
}
17+
}
18+
19+
location /error/ {
20+
alias %home%/%user%/web/%domain%/document_errors/;
21+
}
22+
23+
location @fallback {
24+
proxy_pass https://%ip%:%web_ssl_port%;
25+
}
26+
27+
location ~ /\.ht {return 404;}
28+
location ~ /\.svn/ {return 404;}
29+
location ~ /\.git/ {return 404;}
30+
location ~ /\.hg/ {return 404;}
31+
location ~ /\.bzr/ {return 404;}
32+
33+
include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
34+
}
35+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
server {
2+
listen %ip%:%proxy_port%;
3+
server_name %webmail_vhost%;
4+
5+
include %home%/%user%/conf/web/%domain/nginx.forcessl.conf*;
6+
location / {
7+
proxy_pass http://%ip%:%web_port%;
8+
location ~* ^.+\.(jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm)$ {
9+
alias /var/lib/roundcube/;
10+
expires 15m;
11+
try_files $uri @fallback;
12+
}
13+
}
14+
15+
location /error/ {
16+
alias %home%/%user%/web/%domain%/document_errors/;
17+
}
18+
19+
location ~ /(config|temp|logs) {
20+
return 404;
21+
}
22+
23+
location ~ ^/(.*\.php)$ {
24+
alias /var/lib/roundcube/$1;
25+
fastcgi_pass 127.0.0.1:9000;
26+
fastcgi_index index.php;
27+
include fastcgi_params;
28+
fastcgi_param SCRIPT_FILENAME $request_filename;
29+
}
30+
31+
location @fallback {
32+
proxy_pass http://%ip%:%web_port%;
33+
}
34+
35+
location ~ /\.ht {return 404;}
36+
location ~ /\.svn/ {return 404;}
37+
location ~ /\.git/ {return 404;}
38+
location ~ /\.hg/ {return 404;}
39+
location ~ /\.bzr/ {return 404;}
40+
}

0 commit comments

Comments
 (0)