@jacob.salmela
A long time ago, I responded to a topic, regarding excessive wpad queries and provided a solution to have lighttpd respond.
Does this imply that the solution is no longer a good solution?
I'm aware the solution doesn't have an entry for IPv6, but this can be easily fixed, NOT sure if lighttpd will also provide the response...
edit
The solution was further discussed in this topic, section Q/A (Q: Why so many local requests?)
/edit
edit2
checked to see if IPv6 requests are responded to by lighttpd -> YES
IPv4 request (http://192.168.xxx.xxx/wpad.dat
), entry in the lighttpd log
1536659104|192.168.xxx.xxx|GET /wpad.dat HTTP/1.1|200|56
IPv6 request (http://[2a02:1810:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/wpad.dat
), entry in the lighttpd log
1536659116|[2a02:1810:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]|GET /wpad.dat HTTP/1.1|200|56
/edit2