Diff for /wikisrc/tutorials/lighttpd_on_netbsd.mdwn between versions 1.1 and 1.2

version 1.1, 2019/04/27 20:19:32 version 1.2, 2020/11/30 17:26:23
Line 8  How to deploy a high performance webserv Line 8  How to deploy a high performance webserv
   
 ##  Installation   ##  Installation 
   
 We will install it from pkgsrc because we need some fetures which are not enabled in the binary.   Via `pkgin` or `pkg_add` for platforms with binary packages available, or via pkgsrc thus: 
   
 First of all, let's use gamin as the default file alteration monitor instead of fam:   
       
     # FAM_DEFAULT=gamin  
           
       $ cd /usr/pkgsrc/www/lighttpd
       $ make install clean clean-depends
   
 Of course you can stick with fam if you'd like.   
   
 After that we will enable fam support in lighty:   
       
     # echo PKG_OPTIONS.lighttpd=fam >> /etc/mk.conf  
       
   
 Now the good old magic words:   
       
     # cd /usr/pkgsrc/www/lighttpd/  
     # make install clean clean-depends  
       
   
 Install the rc.d files if you dont do that automaticaly:   If you don’t have `PKG_RCD_SCRIPTS=yes` set, manually install the provided rc.d script:
       
     # cp /usr/pkg/share/examples/rc.d/lighttpd /etc/rc.d/  
           
       # cp /usr/pkg/share/examples/rc.d/lighttpd /etc/rc.d
   
 ##  The lighttpd user   And set `lighttpd=YES` in `/etc/rc.conf`.
   
 By default there is no user created for lighttpd, thus you will have to create one:   
       
     # groupadd lighttpd  
     # useradd -s /sbin/nologin -g lighttpd lighttpd  
           
   
 ##  Configuration   ##  Configuration 
Line 67  Let's use the user we have created for l Line 47  Let's use the user we have created for l
   
 Enable kqueue:   Enable kqueue: 
           
     server.event-handler        = "kqueue"      server.event-handler        = "kqueue"    
           server.stat-cache-engine    = "kqueue"
   
 Enable fam:   
       
     server.stat-cache-engine    = "fam"  
           
   
 ##  Testing the setup   ##  Testing the setup 
Line 106  Be sure to load mod_auth and include the Line 82  Be sure to load mod_auth and include the
           
     # passwd for bind-dn, separated for security reasons      # passwd for bind-dn, separated for security reasons
     # contains: auth.backend.ldap.bind-pw  = "your-password"      # contains: auth.backend.ldap.bind-pw  = "your-password"
     # It must NOT be word readable!      # It must NOT be world readable!
     #      #
     include "ldapsecret"      include "ldapsecret"
             

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb