File tree Expand file tree Collapse file tree 5 files changed +57
-14
lines changed
Expand file tree Collapse file tree 5 files changed +57
-14
lines changed Original file line number Diff line number Diff line change 1+ location /webmail {
2+ alias /var/lib/roundcube/;
3+
4+ location ~ /(config|temp|logs) {
5+ return 404 ;
6+ }
7+
8+ location ~ ^/webmail/(.*\.php )$ {
9+ alias /var/lib/roundcube/$1 ;
10+ fastcgi_pass 127.0.0.1 :9000 ;
11+ fastcgi_index index.php ;
12+ include fastcgi_params;
13+ fastcgi_param SCRIPT_FILENAME $request_filename;
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
2+ Alias /roundcube /var/lib/roundcube
3+ Alias /webmail /var/lib/roundcube
4+
5+ # Access to tinymce files
6+ <Directory "/usr/share/tinymce/www/">
7+ Options Indexes MultiViews FollowSymLinks
8+ AllowOverride None
9+ Order allow,deny
10+ allow from all
11+ </Directory>
12+
13+ <Directory /var/lib/roundcube/>
14+ Options +FollowSymLinks
15+ # This is needed to parse /var/lib/roundcube/.htaccess. See its
16+ # content before setting AllowOverride to None.
17+ AllowOverride All
18+ order allow,deny
19+ allow from all
20+ </Directory>
21+
22+ # Protecting basic directories:
23+ <Directory /var/lib/roundcube/config>
24+ Options -FollowSymLinks
25+ AllowOverride None
26+ </Directory>
27+
28+ <Directory /var/lib/roundcube/temp>
29+ Options -FollowSymLinks
30+ AllowOverride None
31+ Order allow,deny
32+ Deny from all
33+ </Directory>
34+
35+ <Directory /var/lib/roundcube/logs>
36+ Options -FollowSymLinks
37+ AllowOverride None
38+ Order allow,deny
39+ Deny from all
40+ </Directory>
Original file line number Diff line number Diff line change @@ -1092,6 +1092,7 @@ if [ "$nginx" = 'yes' ]; then
10921092 cp -f $hestiacp /nginx/status.conf /etc/nginx/conf.d/
10931093 cp -f $hestiacp /nginx/phpmyadmin.inc /etc/nginx/conf.d/
10941094 cp -f $hestiacp /nginx/phppgadmin.inc /etc/nginx/conf.d/
1095+ cp -f $hestiacp /nginx/webmail.inc /etc/nginx/conf.d/
10951096 cp -f $hestiacp /logrotate/nginx /etc/logrotate.d/
10961097 mkdir -p /etc/nginx/conf.d/domains
10971098 mkdir -p /var/log/nginx/domains
Original file line number Diff line number Diff line change @@ -1060,6 +1060,7 @@ if [ "$nginx" = 'yes' ]; then
10601060 cp -f $hestiacp /nginx/status.conf /etc/nginx/conf.d/
10611061 cp -f $hestiacp /nginx/phpmyadmin.inc /etc/nginx/conf.d/
10621062 cp -f $hestiacp /nginx/phppgadmin.inc /etc/nginx/conf.d/
1063+ cp -f $hestiacp /nginx/webmail.inc /etc/nginx/conf.d/
10631064 cp -f $hestiacp /logrotate/nginx /etc/logrotate.d/
10641065 mkdir -p /etc/nginx/conf.d/domains
10651066 mkdir -p /var/log/nginx/domains
Original file line number Diff line number Diff line change @@ -234,20 +234,6 @@ if [ -z "$IMAP_SYSTEM" ]; then
234234 fi
235235fi
236236
237- # Remove global webmail configuration files in favor of per-domain vhosts
238- if [ -f /etc/apache2/conf.d/roundcube.conf ]; then
239- echo " (*) Removing global webmail configuration files for Apache..."
240- mv /etc/apache2/conf.d/roundcube.conf $HESTIA_BACKUP /conf/
241- fi
242- if [ -f /etc/nginx/conf.d/webmail.inc ]; then
243- echo " (*) Removing global webmail configuration files for Nginx..."
244- mv /etc/nginx/conf.d/webmail.inc $HESTIA_BACKUP /conf/
245- fi
246- if [ -f /etc/nginx/conf.d/webmail.conf ]; then
247- echo " (*) Removing global webmail configuration files for Nginx..."
248- mv /etc/nginx/conf.d/webmail.conf $HESTIA_BACKUP /conf/
249- fi
250-
251237# Remove Webalizer and set AWStats as default
252238echo " (*) Removing Webalizer and setting AWStats as default web statistics backend..."
253239apt purge webalizer -y > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments