Showing posts with label lighttpd. Show all posts
Showing posts with label lighttpd. Show all posts

26 June 2023

lighttpd | Behavior of «setenv» directives

I faced with unclear (for me) behavior of «setenv» directives of «lighttpd» webserver and decide perform several experiments and show the results.

Environment and conditions:
  • Ubuntu 22.04.2 LTS
  • lighttpd 1.4.63-1ubuntu3.1
  • Two modifications of default «/etc/lighttpd/lighttpd.conf»:
    • Changed listened port to 3000.
    • Enabled module «mod_setenv».
  • All other changes performs in «/etc/lighttpd/conf-enabled/» folder.
  • Defined two URLs\paths («http://10.0.0.90:3000/» and «http://10.0.0.90:3000/admin/») to show how merging works