Today's stupid #webdev trick:

I'm using #ApacheHTTPD web server with #ServerSideIncludes, and needed to set a response header.

The solution was to set a variable in the .shtml file, e.g.

<!--#set var="OVERRIDE" value="1" -->

and in the server configuration add

Header set My-Header "new-value" env=OVERRIDE

A short writeup on the scripting I wrote to embed my Mastodon feed in a static HTML page. No JavaScript needed.

https://www.softwolves.com/wolfblog/2023/12/18/adding-a-mastodon-feed-to-a-static-html-site/

#mastodon #html #python #apache #ServerSideIncludes

Adding a Mastodon feed to a static HTML site | A Swedish wolf in Norway 2.0

I just enabled #Apache #ServerSideIncludes on my #blog. It looks like the #performance penalty is less than 1ms. I like that.

https://httpd.apache.org/docs/trunk/howto/ssi.html

Apache httpd Tutorial: Introduction to Server Side Includes - Apache HTTP Server Version 2.5

Anyone remember Server Side Includes (SSI)? Back when dynamic pages had to be done through CGI and you wanted something really simple SSI actually worked out really nice.

Not that I'm ever thinking of using it again, it just occurred my mind :-).

#ssi #shtml #html #ServerSideIncludes

Exxor.xyz | Get client public ip address with Server Side Includes