diff options
author | Alexandros Michalopoulos | 2018-10-06 17:21:42 +0300 |
---|---|---|
committer | Alexandros Michalopoulos | 2018-10-06 17:25:29 +0300 |
commit | 8a6692d9322f95c0057cfe3804d10ccc30e9bdca (patch) | |
tree | 4d4639305f87b40f17af06a6d6f826df0e744fbf /zoneminder-httpd.conf | |
parent | 3f5991574e59a8fe9250860edb6d13bb6c522c37 (diff) | |
download | aur-8a6692d9322f95c0057cfe3804d10ccc30e9bdca.tar.gz |
v=1.32.1,r=3 - ZoneMinder can now be run without MariaDB (for use in remote database scenarios), Apache added as first-class citizen (preferred over Nginx if both are installed)
Diffstat (limited to 'zoneminder-httpd.conf')
-rw-r--r-- | zoneminder-httpd.conf | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/zoneminder-httpd.conf b/zoneminder-httpd.conf new file mode 100644 index 000000000000..7ef3a7731744 --- /dev/null +++ b/zoneminder-httpd.conf @@ -0,0 +1,54 @@ +Listen 8095 + +<VirtualHost localhost:8095> + ServerName localhost:8095 + DocumentRoot /srv/zoneminder/www + + # PHP handler + <FilesMatch \.php$> + SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost/" + </FilesMatch> + + ScriptAlias /cgi-bin /srv/zoneminder/cgi-bin + <Directory /srv/zoneminder/cgi-bin> + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch + AllowOverride None + Require all granted + </Directory> + + Alias /cache /var/lib/zoneminder/cache + <Directory /var/lib/zoneminder/cache> + Options -Indexes +FollowSymLinks + AllowOverride None + Require all granted + </Directory> + + <Directory /srv/zoneminder/www> + Options -Indexes +FollowSymLinks + AllowOverride None + Require all granted + DirectoryIndex index.php + </Directory> + + <Directory /srv/zoneminder/www/api> + RewriteEngine On + RewriteRule ^$ app/webroot/ [L] + RewriteRule (.*) app/webroot/$1 [L] + RewriteBase /api + </Directory> + + <Directory /srv/zoneminder/www/api/app> + RewriteEngine On + RewriteRule ^$ webroot/ [L] + RewriteRule (.*) webroot/$1 [L] + RewriteBase /api + </Directory> + + <Directory /srv/zoneminder/www/api/app/webroot> + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + RewriteBase /api + </Directory> +</VirtualHost>
\ No newline at end of file |