<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Creature</id>
	<title>ZoneMinder Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.staging.zoneminder.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Creature"/>
	<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/Special:Contributions/Creature"/>
	<updated>2026-05-03T14:32:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.staging.zoneminder.com/index.php?title=Lighttpd&amp;diff=17505</id>
		<title>Lighttpd</title>
		<link rel="alternate" type="text/html" href="http://wiki.staging.zoneminder.com/index.php?title=Lighttpd&amp;diff=17505"/>
		<updated>2024-11-03T14:45:00Z</updated>

		<summary type="html">&lt;p&gt;Creature: Add an example config for working with Lighttpd&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Zoneminder comes with an Apache configuration file for the web interface, but it&amp;#039;s possible to run the web interface with Lighttpd too. &lt;br /&gt;
&lt;br /&gt;
The web interface has several different parts. On Ubuntu:&lt;br /&gt;
* The main interface is located in &amp;lt;code&amp;gt;/usr/share/zoneminder/www/&amp;lt;/code&amp;gt;. &lt;br /&gt;
* Zoneminder compiles its supporting assets (ie. CSS and images) into &amp;lt;code&amp;gt;/var/cache/zoneminder/cache/&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Live camera views are handled via CGI-bin through the supporting programs in &amp;lt;code&amp;gt;/usr/lib/zoneminder/cgi-bin/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This helps with troubleshooting: for instance, if the web interface appears but doesn&amp;#039;t look like screenshots in the manual, you should double-check the cache settings. The access and error logs in &amp;lt;code&amp;gt;/var/log/lighttpd/&amp;lt;/code&amp;gt; will help narrow down the problem too. &lt;br /&gt;
&lt;br /&gt;
This config works for me on Ubuntu 22.04.5, Zoneminder 1.36.35, and Lightttpd 1.4.63:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
# These modules support URL rewriting and CGI processes.&lt;br /&gt;
server.modules += (&lt;br /&gt;
    &amp;quot;mod_alias&amp;quot;,&lt;br /&gt;
    &amp;quot;mod_cgi&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
# Rewrite API calls to point to the API PHP entrypoint.&lt;br /&gt;
url.rewrite += (&lt;br /&gt;
    &amp;quot;^/zm/api(.+)$&amp;quot;  =&amp;gt; &amp;quot;/zm/api/index.php&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
# These paths match the default Ubuntu 20.04 locations; double-check them if you have problems. &lt;br /&gt;
alias.url += (&lt;br /&gt;
    &amp;quot;/zm/cache&amp;quot; =&amp;gt; &amp;quot;/var/cache/zoneminder/cache&amp;quot;,&lt;br /&gt;
    &amp;quot;/zm/api&amp;quot; =&amp;gt; &amp;quot;/usr/share/zoneminder/www/api/app/webroot/&amp;quot;,&lt;br /&gt;
    &amp;quot;/zm/cgi-bin&amp;quot; =&amp;gt; &amp;quot;/usr/lib/zoneminder/cgi-bin/&amp;quot;,&lt;br /&gt;
    &amp;quot;/zm/&amp;quot; =&amp;gt; &amp;quot;/usr/share/zoneminder/www/&amp;quot;,&lt;br /&gt;
    &amp;quot;/cgi-bin&amp;quot; =&amp;gt; &amp;quot;/usr/lib/cgi-bin/&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
# The default Zoneminder CGI script is a symlink, so Lighttpd must follow symlinks.&lt;br /&gt;
server.follow-symlink = &amp;quot;enable&amp;quot;&lt;br /&gt;
$HTTP[&amp;quot;url&amp;quot;] =~ &amp;quot;^/zm/cgi-bin&amp;quot; {&lt;br /&gt;
    cgi.assign = (&amp;quot;&amp;quot; =&amp;gt; &amp;quot;&amp;quot;)&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Creature</name></author>
	</entry>
</feed>