Server side scripting in www directory?

I’m not sure if this is the right category for this question, but I’ll go with it…

I’m running Home Assistant Core via Docker. Using an automation, I’m occasionally dumping snapshots (with time stamped file names) from a camera into /config/www . I can successfully access these photos from a browser knowing the filename. I’d like to put something in that directory that I could point my browser at that would run some server side scripting to make an image gallery or a slideshow or something of that nature.

Is it possible to do server side scripting in the www directory? How?

There’s this:

Thanks - I’ll take a look at that, as it might solve my immediate need.

However, I’m still wondering if there’s a way to do something akin to a PHP in Home Assistant’s web server.