init
This commit is contained in:
		
							parent
							
								
									71c6517b92
								
							
						
					
					
						commit
						af927f5922
					
				|  | @ -35,6 +35,7 @@ default_zm: | ||||||
|     conf: '/etc/zm' |     conf: '/etc/zm' | ||||||
|     web: '/usr/share/zoneminder/www' |     web: '/usr/share/zoneminder/www' | ||||||
|     cgi: '/usr/lib/zoneminder/cgi-bin' |     cgi: '/usr/lib/zoneminder/cgi-bin' | ||||||
|  |     cache: '/var/cache/zoneminder' | ||||||
| 
 | 
 | ||||||
|   apache: |   apache: | ||||||
|     # domain: |     # domain: | ||||||
|  |  | ||||||
|  | @ -2,17 +2,15 @@ | ||||||
| # ansibleguy.sw_zoneminder | # ansibleguy.sw_zoneminder | ||||||
| # source: https://github.com/ZoneMinder/zoneminder/tree/master/misc | # source: https://github.com/ZoneMinder/zoneminder/tree/master/misc | ||||||
| 
 | 
 | ||||||
| # Remember to enable cgi mod (i.e. "a2enmod cgi"). | ScriptAlias /zm/cgi-bin "{{ ZM_CONFIG.path.cgi }}" | ||||||
| ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin" | <Directory "{{ ZM_CONFIG.path.cgi }}"> | ||||||
| <Directory "/usr/lib/zoneminder/cgi-bin"> |  | ||||||
|     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch |     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | ||||||
|     AllowOverride All |     AllowOverride All | ||||||
|     Require all granted |     Require all granted | ||||||
| </Directory> | </Directory> | ||||||
| 
 | 
 | ||||||
|     # Order matters. This alias must come first. |     Alias /zm/cache "{{ ZM_CONFIG.path.cache }}" | ||||||
|     Alias /zm/cache "/var/cache/zoneminder" |     <Directory "{{ ZM_CONFIG.path.cache }}"> | ||||||
|     <Directory "/var/cache/zoneminder"> |  | ||||||
|         Options -Indexes +FollowSymLinks |         Options -Indexes +FollowSymLinks | ||||||
|         AllowOverride None |         AllowOverride None | ||||||
|         <IfModule mod_authz_core.c> |         <IfModule mod_authz_core.c> | ||||||
|  | @ -21,30 +19,29 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin" | ||||||
|         </IfModule> |         </IfModule> | ||||||
|     </Directory> |     </Directory> | ||||||
| 
 | 
 | ||||||
| Alias /zm /usr/share/zoneminder/www | Alias /zm {{ ZM_CONFIG.path.web }} | ||||||
| <Directory /usr/share/zoneminder/www> | <Directory {{ ZM_CONFIG.path.web }}> | ||||||
|   Options -Indexes +FollowSymLinks |   Options -Indexes +FollowSymLinks | ||||||
|   <IfModule mod_dir.c> |   <IfModule mod_dir.c> | ||||||
|     DirectoryIndex index.php |     DirectoryIndex index.php | ||||||
|   </IfModule> |   </IfModule> | ||||||
| </Directory> | </Directory> | ||||||
| 
 | 
 | ||||||
| # fix for /zm/api throwing 404 => https://github.com/turnkeylinux/tracker/issues/1623 | <Directory "{{ ZM_CONFIG.path.web }}/api"> | ||||||
| <Directory "/usr/share/zoneminder/www/api"> |  | ||||||
|    RewriteEngine on |    RewriteEngine on | ||||||
|    RewriteRule ^$ app/webroot/ [L] |    RewriteRule ^$ app/webroot/ [L] | ||||||
|    RewriteRule (.*) app/webroot/$1 [L] |    RewriteRule (.*) app/webroot/$1 [L] | ||||||
|    RewriteBase /zm/api |    RewriteBase /zm/api | ||||||
| </Directory> | </Directory> | ||||||
| 
 | 
 | ||||||
| <Directory "/usr/share/zoneminder/www/api/app"> | <Directory "{{ ZM_CONFIG.path.web }}/api/app"> | ||||||
|    RewriteEngine on |    RewriteEngine on | ||||||
|    RewriteRule ^$ webroot/ [L] |    RewriteRule ^$ webroot/ [L] | ||||||
|    RewriteRule (.*) webroot/$1 [L] |    RewriteRule (.*) webroot/$1 [L] | ||||||
|    RewriteBase /zm/api |    RewriteBase /zm/api | ||||||
| </Directory> | </Directory> | ||||||
| 
 | 
 | ||||||
| <Directory "/usr/share/zoneminder/www/api/app/webroot"> | <Directory "{{ ZM_CONFIG.path.web }}/api/app/webroot"> | ||||||
|     RewriteEngine On |     RewriteEngine On | ||||||
|     RewriteCond %{REQUEST_FILENAME} !-d |     RewriteCond %{REQUEST_FILENAME} !-d | ||||||
|     RewriteCond %{REQUEST_FILENAME} !-f |     RewriteCond %{REQUEST_FILENAME} !-f | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue