2013-09-16 05:33:09 +08:00
|
|
|
#
|
2015-09-09 07:16:19 +08:00
|
|
|
# ZoneMinder Apache configuration file
|
|
|
|
# With SSLRequire and HTTPS auto redirect
|
|
|
|
# Modify this configuration to suit your requirements
|
|
|
|
#
|
|
|
|
|
|
|
|
# Auto Redirect HTTP requests to HTTPS
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{HTTPS} !=on
|
|
|
|
RewriteRule ^/?(zm)(.*) https://%{SERVER_NAME}/$1$2 [R,L]
|
2013-09-16 05:33:09 +08:00
|
|
|
|
2015-02-15 22:23:28 +08:00
|
|
|
Alias /zm "@ZM_WEBDIR@"
|
|
|
|
<Directory "@ZM_WEBDIR@">
|
2015-09-09 07:16:19 +08:00
|
|
|
SSLRequireSSL
|
2013-09-16 05:33:09 +08:00
|
|
|
Options -Indexes MultiViews FollowSymLinks
|
|
|
|
AllowOverride All
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
|
|
|
|
2015-02-15 22:23:28 +08:00
|
|
|
ScriptAlias /cgi-bin/zm "@ZM_WEBDIR@"
|
|
|
|
<Directory "@ZM_WEBDIR@">
|
2015-09-09 07:16:19 +08:00
|
|
|
SSLRequireSSL
|
2013-09-16 05:33:09 +08:00
|
|
|
AllowOverride All
|
2015-08-14 09:23:52 +08:00
|
|
|
Options ExecCGI FollowSymLinks
|
2013-09-16 05:33:09 +08:00
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|