File tree Expand file tree Collapse file tree 5 files changed +27
-1
lines changed
Expand file tree Collapse file tree 5 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
55
66### Features
77
8+ - Add nginx user_agent separation to desktop/mobile (e.g. for fastcgi cache)
89
910### Bugfixes
1011
Original file line number Diff line number Diff line change 1+ map $http_user_agent $mobile_request {
2+ default desktopversion;
3+
4+ "~*ipad" mobileversion;
5+ "~*android.*mobile" mobileversion;
6+ "~*iphone" mobileversion;
7+ "~*ipod.*mobile" mobileversion;
8+ "~*BlackBerry*Mobile Safari" mobileversion;
9+ "~*BB*Mobile Safari" mobileversion;
10+ "~*Opera.*Mini/7" mobileversion;
11+ "~*IEMobile/10.*Touch" mobileversion;
12+ "~*IEMobile/11.*Touch" mobileversion;
13+ "~*IEMobile/7.0" mobileversion;
14+ "~*IEMobile/9.0" mobileversion;
15+ "~*Firefox.*Mobile" mobileversion;
16+ "~*webOS" mobileversion;
17+ }
Original file line number Diff line number Diff line change @@ -1237,6 +1237,7 @@ echo "[ * ] Configuring NGINX..."
12371237rm -f /etc/nginx/conf.d/* .conf
12381238cp -f $HESTIA_INSTALL_DIR /nginx/nginx.conf /etc/nginx/
12391239cp -f $HESTIA_INSTALL_DIR /nginx/status.conf /etc/nginx/conf.d/
1240+ cp -f $HESTIA_INSTALL_DIR /nginx/agents.conf /etc/nginx/conf.d/
12401241cp -f $HESTIA_INSTALL_DIR /nginx/phpmyadmin.inc /etc/nginx/conf.d/
12411242cp -f $HESTIA_INSTALL_DIR /nginx/phppgadmin.inc /etc/nginx/conf.d/
12421243cp -f $HESTIA_INSTALL_DIR /logrotate/nginx /etc/logrotate.d/
Original file line number Diff line number Diff line change @@ -1277,6 +1277,7 @@ echo "[ * ] Configuring NGINX..."
12771277rm -f /etc/nginx/conf.d/* .conf
12781278cp -f $HESTIA_INSTALL_DIR /nginx/nginx.conf /etc/nginx/
12791279cp -f $HESTIA_INSTALL_DIR /nginx/status.conf /etc/nginx/conf.d/
1280+ cp -f $HESTIA_INSTALL_DIR /nginx/agents.conf /etc/nginx/conf.d/
12801281cp -f $HESTIA_INSTALL_DIR /nginx/phpmyadmin.inc /etc/nginx/conf.d/
12811282cp -f $HESTIA_INSTALL_DIR /nginx/phppgadmin.inc /etc/nginx/conf.d/
12821283cp -f $HESTIA_INSTALL_DIR /logrotate/nginx /etc/logrotate.d/
Original file line number Diff line number Diff line change 66# ###### Place additional commands below. #######
77# ######################################################################################
88
9+
10+ if [ -d " /etc/nginx/conf.d/" ]; then
11+ # Add nginx user_agent separation to desktop/mobile
12+ cp -f $HESTIA_INSTALL_DIR /nginx/agents.conf /etc/nginx/conf.d/
13+ fi
14+
915# Reset PMA SSO to fix bug with Nginx + Apache2
1016if [ " $PHPMYADMIN_KEY " != " " ]; then
1117 echo " [ * ] Refressh hestia-sso for PMA..."
1218 $BIN /v-delete-sys-pma-sso
1319 $BIN /v-add-sys-pma-sso
14- fi
20+ fi
You can’t perform that action at this time.
0 commit comments