User Tools

Site Tools


operating_systems:raspbian:easydoor_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
operating_systems:raspbian:easydoor_configuration [2019/07/15 09:35] – [Lighttpd setup] maferreiraoperating_systems:raspbian:easydoor_configuration [2019/07/16 12:34] – [Lighttpd setup] maferreira
Line 237: Line 237:
   $HTTP["host"] == "easydoor" { #FDQN   $HTTP["host"] == "easydoor" { #FDQN
   server.document-root = "/home/acdsn/git/easydoor-scripts/minicentral/intercom/www/html"   server.document-root = "/home/acdsn/git/easydoor-scripts/minicentral/intercom/www/html"
-  server.errorlog = "/var/log/lighttpd/easydoor-error.log" 
   }   }
 +
 +<note important>
 +server.errorlog is not set here because lighttpd only supports one error log file for the server
 +(it does not support a error log file for each virtual host)
 +</note>
  
 Enable the virtual host you have just created by creatign a symlink to /etc/lighttpd/conf-enabled. Enable the virtual host you have just created by creatign a symlink to /etc/lighttpd/conf-enabled.
Line 253: Line 257:
  
   # lighttpd-enable-mod accesslog   # lighttpd-enable-mod accesslog
 +
 +Now, set the access log file location in your **/etc/lighttpd/conf-enabled/easydoor.conf**. It should look like this:
 +  $HTTP["host"] == "easydoor" { #FDQN
 +  server.document-root    = "/home/acdsn/git/easydoor-scripts/minicentral/intercom/www/html"
 +  accesslog.filename      = "/var/log/lighttpd/easydoor-access.log"
 +  }
  
 Restart **lighttpd** and see if there are any errors. Restart **lighttpd** and see if there are any errors.
Line 263: Line 273:
   d /var/log/lighttpd 0750 www-data www-data   d /var/log/lighttpd 0750 www-data www-data
  
-References:\\ +=== References === 
-[[https://pimylifeup.com/raspberry-pi-lighttpd/]]\\ +Install lighttp and enable PHP - [[https://pimylifeup.com/raspberry-pi-lighttpd/]]\\ 
-[[https://redmine.lighttpd.net/projects/lighttpd/wiki/TutorialLighttpdAndPHP#Configuration]]\\ +Enable PHP on lighttpd - [[https://redmine.lighttpd.net/projects/lighttpd/wiki/TutorialLighttpdAndPHP#Configuration]]\\ 
-[[https://www.itzgeek.com/how-tos/linux/how-to-setup-virtual-hosts-in-lighttpd-server.html]]\\ +Setup virtual hosts - [[https://www.itzgeek.com/how-tos/linux/how-to-setup-virtual-hosts-in-lighttpd-server.html]]\\ 
-[[https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAccessLog]]\\ +Virtual host log file warning - [[https://redmine.lighttpd.net/boards/2/topics/8000?r=8003#message-8003]]\\ 
-[[https://discourse.pi-hole.net/t/lighttpd-not-starting/15565/12]]\\+Accesslog module activation - [[https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAccessLog]]\\ 
 +Lighttpd fails to create log files - [[https://discourse.pi-hole.net/t/lighttpd-not-starting/15565/12]]\\
  
 ===== Strike ===== ===== Strike =====