diff -urN smeserver-userpanel-1.4.old/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess30user smeserver-userpanel-1.4/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess30user
--- smeserver-userpanel-1.4.old/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess30user 2022-07-22 15:28:14.221036281 +0300
+++ smeserver-userpanel-1.4/root/etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess30user 2022-07-22 15:43:43.648404844 +0300
@@ -53,29 +53,27 @@
Options Includes Indexes FollowSymLinks
AllowOverride None
- order deny,allow
- deny from all
- allow from $localAccess
AuthName "SME User manager"
AuthType Basic
TKTAuthLoginURL /server-common/cgi-bin/login
- require valid-user
SetEnv IMGHDR_SRC \"/e-smith-common/server-manager.jpg\"
- Satisfy all
+
+ require valid-user
+ Require ip $localAccess
+
Options Includes Indexes FollowSymLinks
AllowOverride None
- order deny,allow
- deny from all
- allow from $localAccess
AuthName "SME User Manager"
AuthType Basic
TKTAuthLoginURL /server-common/cgi-bin/login
- require valid-user
SetEnv IMGHDR_SRC \"/e-smith-common/server-manager.jpg\"
- Satisfy all
+
+ require valid-user
+ Require ip $localAccess
+
HERE
foreach $file (@files)
diff -urN smeserver-userpanel-1.4.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass smeserver-userpanel-1.4/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass
--- smeserver-userpanel-1.4.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass 2022-07-22 15:28:14.220036286 +0300
+++ smeserver-userpanel-1.4/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28UserManagerProxyPass 2022-07-22 15:48:31.086986931 +0300
@@ -18,13 +18,11 @@
}
$OUT .= " \n";
- $OUT .= " order deny,allow\n";
- $OUT .= " deny from all\n";
if (($haveSSL eq 'yes') && (($port eq "443") || ($plainTextAccess ne 'yes')))
{
- $OUT .= " allow from $localAccess $externalSSLAccess\n";
+ $OUT .= " Require ip $localAccess $externalSSLAccess\n";
} else {
- $OUT .= " allow from $localAccess\n";
+ $OUT .= " Require ip $localAccess\n";
}
$OUT .= " \n";
}