Sample Apache2 vhost config
Posted: Mon Jul 26, 2010 8:47 am
Below is a sample Apache2 vhost config that works for me, in case you want a vhost service. In such case, your website would be at http://zoneminder.mydomain.com. Makes it easy to move the service from one host to another in the future. Just add a CNAME in DNS.
OS here is Debian GNU/Linux unstable.
--
OS here is Debian GNU/Linux unstable.
--
Code: Select all
VirtualHost *>
ServerName zoneminder.mydomain.com
ServerAlias zoneminder *.zoneminder.mydomain.com
ServerAdmin webmaster@mydomain.com
DocumentRoot /usr/share/zoneminder
Options +FollowSymLinks Indexes
<Location>
Order allow,deny
Allow from 127.0.0.1 192.168.15.0/24
Options +FollowSymLinks Indexes
</Location>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<IfModule>
AddType application/x-httpd-php .php
php_flag register_globals Off
DirectoryIndex index.php
</IfModule>
</VirtualHost>