File tree Expand file tree Collapse file tree 4 files changed +213
-0
lines changed
install/deb/templates/mail Expand file tree Collapse file tree 4 files changed +213
-0
lines changed Original file line number Diff line number Diff line change 1+ <VirtualHost %ip%:%web_ssl_port%>
2+ ServerName %domain%
3+ ServerAlias %alias%
4+ Alias / /var/lib/roundcube/
5+ Alias /error/ %home%/%user%/web/%root_domain%/document_errors/
6+ #SuexecUserGroup %user% %group%
7+
8+ SSLEngine on
9+ SSLVerifyClient none
10+ SSLCertificateFile %home%/%user%/conf/mail/%root_domain%/ssl/%root_domain%.crt
11+ SSLCertificateKeyFile %home%/%user%/conf/mail/%root_domain%/ssl/%root_domain%.key
12+
13+ IncludeOptional %home%/%user%/conf/mail/%root_domain%/apache2.forcessl.conf*
14+
15+ <Directory "/usr/share/tinymce/www/">
16+ Options Indexes MultiViews FollowSymLinks
17+ AllowOverride None
18+ Order allow,deny
19+ allow from all
20+ </Directory>
21+
22+ <Directory /var/lib/roundcube/>
23+ Options +FollowSymLinks
24+ # This is needed to parse /var/lib/roundcube/.htaccess. See its
25+ # content before setting AllowOverride to None.
26+ AllowOverride All
27+ order allow,deny
28+ allow from all
29+ </Directory>
30+
31+ # Protecting basic directories:
32+ <Directory /var/lib/roundcube/config>
33+ Options -FollowSymLinks
34+ AllowOverride None
35+ </Directory>
36+
37+ <Directory /var/lib/roundcube/temp>
38+ Options -FollowSymLinks
39+ AllowOverride None
40+ Order allow,deny
41+ Deny from all
42+ </Directory>
43+
44+ <Directory /var/lib/roundcube/logs>
45+ Options -FollowSymLinks
46+ AllowOverride None
47+ Order allow,deny
48+ Deny from all
49+ </Directory>
50+
51+ <FilesMatch \.php$>
52+ SetHandler "proxy:%backend_lsnr%|fcgi://localhost"
53+ </FilesMatch>
54+ SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
55+
56+ IncludeOptional %home%/%user%/conf/mail/%root_domain%/%web_system%.ssl.conf_*
57+
58+ </VirtualHost>
Original file line number Diff line number Diff line change 1+ <VirtualHost %ip%:%web_port% >
2+ ServerName %domain%
3+ ServerAlias %alias%
4+ Alias / /var/lib/roundcube/
5+ Alias /error/ %home%/%user%/web/%root_domain%/document_errors/
6+ #SuexecUserGroup %user% %group%
7+
8+ IncludeOptional %home%/%user%/conf/mail/%root_domain%/apache2.forcessl.conf*
9+
10+ <Directory " /usr/share/tinymce/www/" >
11+ Options Indexes MultiViews FollowSymLinks
12+ AllowOverride None
13+ Order allow,deny
14+ allow from all
15+ </Directory >
16+
17+ <Directory /var /lib /roundcube />
18+ Options +FollowSymLinks
19+ # This is needed to parse /var/lib/roundcube/.htaccess. See its
20+ # content before setting AllowOverride to None.
21+ AllowOverride All
22+ order allow,deny
23+ allow from all
24+ </Directory >
25+
26+ # Protecting basic directories:
27+ <Directory /var /lib /roundcube /config >
28+ Options -FollowSymLinks
29+ AllowOverride None
30+ </Directory >
31+
32+ <Directory /var /lib /roundcube /temp >
33+ Options -FollowSymLinks
34+ AllowOverride None
35+ Order allow,deny
36+ Deny from all
37+ </Directory >
38+
39+ <Directory /var /lib /roundcube /logs >
40+ Options -FollowSymLinks
41+ AllowOverride None
42+ Order allow,deny
43+ Deny from all
44+ </Directory >
45+
46+ <FilesMatch \.php$ >
47+ SetHandler "proxy:%backend_lsnr%|fcgi://localhost"
48+ </FilesMatch >
49+ SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
50+
51+ IncludeOptional %home%/%user%/conf/mail/%root_domain%/%web_system%.conf_*
52+
53+ </VirtualHost >
Original file line number Diff line number Diff line change 1+ server {
2+ listen %ip%:%proxy_ssl_port% ssl http2;
3+ server_name %domain% %alias%;
4+ root /var/lib/roundcube;
5+ index index.php index.html index.htm;
6+ access_log /var/log/nginx/domains/%domain%.log combined;
7+ error_log /var/log/nginx/domains/%domain%.error.log error;
8+
9+ ssl_certificate %ssl_pem%;
10+ ssl_certificate_key %ssl_key%;
11+ ssl_stapling on;
12+ ssl_stapling_verify on;
13+
14+ location ~ /\.(?!well-known\/) {
15+ deny all;
16+ return 404;
17+ }
18+
19+ location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
20+ deny all;
21+ return 404;
22+ }
23+
24+ location / {
25+ proxy_pass https://%ip%:%web_ssl_port%;
26+ try_files $uri $uri/ =404;
27+ alias /var/lib/roundcube/;
28+ location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
29+ expires 7d;
30+ fastcgi_hide_header "Set-Cookie";
31+ }
32+
33+ location ~ [^/]\.php(/|$) {
34+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
35+ if (!-f $document_root$fastcgi_script_name) {
36+ return 404;
37+ }
38+
39+ fastcgi_pass %backend_lsnr%;
40+ fastcgi_index index.php;
41+ include /etc/nginx/fastcgi_params;
42+ }
43+ }
44+
45+ location /error/ {
46+ alias /var/www/document_errors/;
47+ }
48+
49+ location @fallback {
50+ proxy_pass https://%ip%:%web_ssl_port%;
51+ }
52+
53+ include %home%/%user%/conf/mail/%root_domain%/%proxy_system%.conf_*;
54+ }
Original file line number Diff line number Diff line change 1+ server {
2+ listen % ip% :% proxy_port% ;
3+ server_name % domain% % alias% ;
4+ root /var/lib/roundcube;
5+ index index.php index.html index.htm;
6+ access_log /var/log/nginx/domains/% domain% .log combined;
7+ error_log /var/log/nginx/domains/% domain% .error.log error;
8+
9+ include % home% /% user% /conf/mail/% root_domain% /nginx.forcessl.conf*;
10+
11+ location ~ /\.(?! well-known\/) {
12+ deny all;
13+ return 404;
14+ }
15+
16+ location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
17+ deny all;
18+ return 404;
19+ }
20+
21+ location / {
22+ proxy_pass http://% ip% :% web_port% ;
23+ try_files $uri $uri / =404;
24+ alias /var/lib/roundcube/;
25+ location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|woff2|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
26+ expires 7d;
27+ fastcgi_hide_header " Set-Cookie" ;
28+ }
29+
30+ location ~ ^/(.*\.php)$ {
31+ alias /var/lib/roundcube/$1;
32+ fastcgi_pass 127.0.0.1:9000;
33+ fastcgi_index index.php;
34+ include fastcgi_params;
35+ fastcgi_param SCRIPT_FILENAME $request_filename ;
36+ }
37+ }
38+
39+ location /error/ {
40+ alias /var/www/document_errors/;
41+ }
42+
43+ location @fallback {
44+ proxy_pass http://% ip% :% web_port% ;
45+ }
46+
47+ include %home%/%user%/conf/mail/%root_domain%/%proxy_system%.conf_*;
48+ }
You can’t perform that action at this time.
0 commit comments