1 |
diff -up smeserver-ajaxterm-1.0.5/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/26ajaxterm.patch2 smeserver-ajaxterm-1.0.5/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/26ajaxterm |
2 |
--- smeserver-ajaxterm-1.0.5/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/26ajaxterm.patch2 2007-11-15 13:55:57.000000000 -0500 |
3 |
+++ smeserver-ajaxterm-1.0.5/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/26ajaxterm 2013-06-26 20:05:16.000000000 -0400 |
4 |
@@ -1,13 +1,16 @@ |
5 |
{ |
6 |
if ($port eq "443") |
7 |
{ |
8 |
+ # 64 or i386 |
9 |
+ my $fileauth = -f "/usr/lib64/httpd/modules/pwauth" ? "/usr/lib64/httpd/modules/pwauth" : "/usr/lib/httpd/modules/pwauth"; |
10 |
+ |
11 |
$port=$Ajaxterm{servicePort}||8022; |
12 |
$users=$Ajaxterm{basicAuthUsers}||'admin'; |
13 |
$webalias=$Ajaxterm{webAlias}||'ajaxterm'; |
14 |
$OUT .= " # Ajaxterm\n"; |
15 |
$OUT .= " ProxyPass /$webalias/ http://127.0.0.1:$port/\n"; |
16 |
$OUT .= " ProxyPassReverse /$webalias/ http://127.0.0.1:$port/\n"; |
17 |
- $OUT .= " AddExternalAuth pwauth /usr/lib/httpd/modules/pwauth\n"; |
18 |
+ $OUT .= " AddExternalAuth pwauth $fileauth\n"; |
19 |
$OUT .= " SetExternalAuthMethod pwauth pipe\n"; |
20 |
$OUT .= " <Location /$webalias>\n"; |
21 |
$OUT .= " AllowOverride None\n"; |