2011-04-28 22:10:40 +08:00
|
|
|
#
|
|
|
|
# PLEASE NOTE THAT THIS FILE IS INTENDED FOR GUIDANCE ONLY AND MAY NOT BE APPROPRIATE FOR YOUR DISTRIBUTION
|
|
|
|
#
|
2011-05-16 05:16:36 +08:00
|
|
|
# Sample configuration file for running ZoneMinder as name based virtual host
|
|
|
|
# Some values may need to manually adjusted to suit your setup
|
2011-04-27 22:32:41 +08:00
|
|
|
#
|
|
|
|
<VirtualHost *:80>
|
2011-05-16 05:16:36 +08:00
|
|
|
ServerName @WEB_HOST@
|
2011-04-27 22:32:41 +08:00
|
|
|
ServerAdmin webmaster@localhost
|
|
|
|
|
2011-05-16 05:16:36 +08:00
|
|
|
DocumentRoot "@WEB_PREFIX@"
|
|
|
|
<Directory "@WEB_PREFIX@">
|
2011-04-27 22:32:41 +08:00
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride All
|
|
|
|
</Directory>
|
|
|
|
|
2015-05-24 21:50:04 +08:00
|
|
|
ScriptAlias /cgi-bin "@CGI_PREFIX@"
|
2011-05-16 05:16:36 +08:00
|
|
|
<Directory "@CGI_PREFIX@">
|
|
|
|
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
2011-04-27 22:32:41 +08:00
|
|
|
AllowOverride All
|
2015-08-22 21:56:47 +08:00
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# Apache 2.4
|
|
|
|
Require all granted
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# Apache 2.2
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
</IfModule>
|
2011-04-27 22:32:41 +08:00
|
|
|
</Directory>
|
|
|
|
|
|
|
|
# Use the first option to have Apache logs written to the general log
|
|
|
|
# directory, or the second to have them written to the regular Apache
|
|
|
|
# directory (you may have to change the path to that used on your system)
|
|
|
|
ErrorLog @ZM_LOGDIR@/apache-error.log
|
2015-05-24 21:50:04 +08:00
|
|
|
#ErrorLog /var/log/httpd/zm-error.log
|
2011-04-27 22:32:41 +08:00
|
|
|
|
|
|
|
# Possible values include: debug, info, notice, warn, error, crit,
|
|
|
|
# alert, emerg.
|
|
|
|
LogLevel warn
|
|
|
|
|
|
|
|
# Use the first option to have Apache logs written to the general log
|
|
|
|
# directory, or the second to have them written to the regular Apache
|
|
|
|
# directory (you may have to change the path to that used on your system)
|
|
|
|
CustomLog @ZM_LOGDIR@/apache-access.log combined
|
2015-05-24 21:50:04 +08:00
|
|
|
#CustomLog /var/log/httpd/zm-access.log combined
|
2011-04-27 22:32:41 +08:00
|
|
|
|
|
|
|
</VirtualHost>
|