29 lines
664 B
Plaintext
29 lines
664 B
Plaintext
#
|
|
# 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]
|
|
|
|
Alias /zm "@ZM_WEBDIR@"
|
|
<Directory "@ZM_WEBDIR@">
|
|
SSLRequireSSL
|
|
Options -Indexes MultiViews FollowSymLinks
|
|
AllowOverride All
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
ScriptAlias /cgi-bin/zm "@ZM_CGIDIR@"
|
|
<Directory "@ZM_CGIDIR@">
|
|
SSLRequireSSL
|
|
AllowOverride All
|
|
Options ExecCGI FollowSymLinks
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|