zoneminder/misc/apache.conf

40 lines
1.4 KiB
ApacheConf
Raw Normal View History

2013-03-17 07:45:21 +08:00
#
# PLEASE NOTE THAT THIS FILE IS INTENDED FOR GUIDANCE ONLY AND MAY NOT BE APPROPRIATE FOR YOUR DISTRIBUTION
#
# Sample configuration file for running ZoneMinder as name based virtual host
# Some values may need to manually adjusted to suit your setup
#
<VirtualHost *:80>
ServerName zm.local
ServerAdmin webmaster@localhost
DocumentRoot "/usr/share/zoneminder"
<Directory "/usr/share/zoneminder">
Options FollowSymLinks
AllowOverride All
</Directory>
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin"
<Directory "/usr/lib/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
</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 /var/log/zm/apache-error.log
ErrorLog /var/log/httpd/zm-error.log
# 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 /var/log/zm/apache-access.log combined
CustomLog /var/log/httpd/zm-access.log combined
</VirtualHost>