1 |
snetram |
1.1 |
--- smeserver-phpmyadmin-multiuser-2.11.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30PhpmyadminMulti.Alias 2008-05-15 21:27:49.000000000 +0200 |
2 |
|
|
+++ smeserver-phpmyadmin-multiuser-2.11.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/30PhpmyadminMulti 2008-05-15 21:30:53.000000000 +0200 |
3 |
|
|
@@ -1,9 +1,8 @@ |
4 |
|
|
{ |
5 |
|
|
+ $haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ? 'yes' : 'no'; |
6 |
|
|
|
7 |
|
|
- if ($port eq "80") |
8 |
|
|
- { |
9 |
|
|
- $OUT = ' RewriteRule ^/myadmin(/.*|$) https://%{HTTP_HOST}/myadmin$1 [L,R]'; |
10 |
|
|
- } else { |
11 |
|
|
- $OUT = ' Alias /phpmyadmin /usr/share/phpmyadmin'; |
12 |
|
|
- } |
13 |
|
|
+ if (($port eq "80") && ($haveSSL eq 'yes')) |
14 |
|
|
+ { |
15 |
|
|
+ $OUT .= " RewriteRule ^/phpmyadmin(/.*|\$) https://%{HTTP_HOST}/phpmyadmin\$1 [L,R]\n"; |
16 |
|
|
+ } |
17 |
|
|
} |
18 |
|
|
--- smeserver-phpmyadmin-multiuser-2.11.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminmultiAlias.Alias 2008-05-15 21:27:49.000000000 +0200 |
19 |
|
|
+++ smeserver-phpmyadmin-multiuser-2.11.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminmultiAlias 2008-05-15 21:30:05.000000000 +0200 |
20 |
|
|
@@ -1,5 +1,6 @@ |
21 |
|
|
+# phpMyAdmin |
22 |
|
|
+Alias /phpmyadmin /usr/share/phpmyadmin |
23 |
|
|
|
24 |
|
|
-# Administration: phpMyAdmin |
25 |
|
|
<Directory /usr/share/phpmyadmin> |
26 |
|
|
SSLRequireSSL on |
27 |
|
|
Options -Indexes |