Skip to content

Commit 5f70cdb

Browse files
committed
Bring back /webmail alias configuration.
1 parent 194a436 commit 5f70cdb

File tree

5 files changed

+57
-14
lines changed

5 files changed

+57
-14
lines changed

install/deb/nginx/webmail.inc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

install/deb/roundcube/apache.conf

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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>

install/hst-install-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

install/upgrade/0.10.0-190430.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -234,20 +234,6 @@ if [ -z "$IMAP_SYSTEM" ]; then
234234
fi
235235
fi
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
252238
echo "(*) Removing Webalizer and setting AWStats as default web statistics backend..."
253239
apt purge webalizer -y > /dev/null 2>&1

0 commit comments

Comments
 (0)