diff --git a/src/opnsense/service/templates/OPNsense/Captiveportal/lighttpd-zone.conf b/src/opnsense/service/templates/OPNsense/Captiveportal/lighttpd-zone.conf index c3c08b388..a18f524a3 100644 --- a/src/opnsense/service/templates/OPNsense/Captiveportal/lighttpd-zone.conf +++ b/src/opnsense/service/templates/OPNsense/Captiveportal/lighttpd-zone.conf @@ -108,7 +108,7 @@ server.username = "www" server.groupname = "www" #### set the pid file (newsyslog) -server.pid-file = "/var/run/lighttpd.pid" +server.pid-file = "/var/run/lighttpd-cp-zone-{{cp_zone_item.zoneid}}.pid" #### name the server daemon publicly displays server.tag = "lighttpd" @@ -117,7 +117,7 @@ server.tag = "lighttpd" server.document-root = "/htdocs/" #### chroot() to captive portal zone directory -server.chroot = "/var/captiveportal/zone1" +server.chroot = "/var/captiveportal/zone{{cp_zone_item.zoneid}}" #### files to check for if .../ is requested index-file.names = ( "index.html" )