Skip to content

Commit 2a102e5

Browse files
Update phpmyadmin.inc (hestiacp#4618)
* Update phpmyadmin.inc regex correction. * Update phpmyadmin.inc in /etc/ninx/conf.d folder --------- Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
1 parent 625512b commit 2a102e5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

install/deb/nginx/phpmyadmin.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ location /%pma_alias% {
2121
}
2222

2323
# Serve static files like CSS and JS
24-
location /%pma_alias%/(.+\.(jpg|jpeg|gif|css|png|webp|js|ico|html|xml|txt))$ {
25-
alias /usr/share/phpmyadmin/;
24+
location ~ ^/%pma_alias%/(.*\.(jpg|jpeg|gif|css|png|webp|js|ico|html|xml|txt))$ {
25+
alias /usr/share/phpmyadmin/$1; # Corrected from root to alias
2626
}
2727
}

install/upgrade/versions/1.9.0.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ if [ -s /etc/exim4/exim4.conf.template ] && ! grep -Fq "smtp_accept_max" /etc/ex
9595
sed -i '/disable_ipv6 = true/a\smtp_accept_max = 100\nsmtp_accept_max_per_host = 20' /etc/exim4/exim4.conf.template
9696
fi
9797

98+
# Update phymyadmin.inc for nginx
99+
if [ -s /etc/nginx/conf.d/phpmyadmin.inc ]; then
100+
cp -f $HESTIA_INSTALL_DIR/install/deb/nginx/phpmyadmin.inc /etc/nginx/conf.d/phpmyadmin.inc
101+
fi
102+
98103
$BIN/v-add-user-notification 'admin' 'Hestia security has been upgraded' ' A new user "hestiaweb" has been created and is used for login. Make sure other Hestia packages are updated as well otherwise the system may not work as expected.'
99104
add_upgrade_message 'Security has been upgraded, A new user "hestiaweb" has been created and is used for login. Make sure other Hestia packages are updated as well otherwise the system may not work as expected.'
100105
# Ensures proper permissions for Hestia service interactions.

0 commit comments

Comments
 (0)