76 |
diff -Nur --no-dereference smeserver-zoneminder-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder smeserver-zoneminder-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder |
diff -Nur --no-dereference smeserver-zoneminder-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder smeserver-zoneminder-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder |
77 |
--- smeserver-zoneminder-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder 2022-08-01 00:26:08.189000000 -0400 |
--- smeserver-zoneminder-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder 2022-08-01 00:26:08.189000000 -0400 |
78 |
+++ smeserver-zoneminder-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder 2022-08-01 01:24:37.446000000 -0400 |
+++ smeserver-zoneminder-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/23zoneminder 2022-08-01 01:24:37.446000000 -0400 |
79 |
@@ -1 +1,11 @@ |
@@ -1 +1,12 @@ |
80 |
-ScriptAlias /cgi-bin-zm /usr/libexec/zoneminder/cgi-bin |
-ScriptAlias /cgi-bin-zm /usr/libexec/zoneminder/cgi-bin |
81 |
+#Zoneminder |
+ #Zoneminder |
82 |
+ |
+{ |
83 |
+# Auto Redirect HTTP requests to HTTPS |
+$OUT=""; |
84 |
+RewriteEngine On |
+if ( $port ne $SSLPort ) { |
85 |
+RewriteCond %{HTTPS} !=on |
+ $OUT .= "RewriteEngine On\n"; |
86 |
+RewriteRule ^/?(zm)(.*) https://%{SERVER_NAME}/$1$2 [R,L] |
+ $OUT .= 'RewriteCond %{HTTPS} !=on'."\n"; |
87 |
+ |
+ $OUT .= 'RewriteRule ^/?(zm)(.*) https://%{SERVER_NAME}/$1$2 [R,L]'."\n";} |
88 |
+# Order matters. This alias must come first. |
+} |
89 |
+Alias /zm/cache "/var/cache/zoneminder" |
+ # Order matters. This alias must come first. |
90 |
+Alias /zm "/usr/share/zoneminder/www" |
+ Alias /zm/cache "/var/cache/zoneminder" |
91 |
+ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin" |
+ Alias /zm "/usr/share/zoneminder/www" |
92 |
|
+ ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin" |