Read the latest posts from Fedi.dev.

from Gytis Repečka

When Apache HTTPD server pretty much entirely dominated the market, one of the first tasks admin would do was to hide version number:

ServerTokens ProductOnly

Remember this tag? :)

Nowadays as nginx is so popular, especially if you need high performance reverse proxy (WriteFreely runs behind proxy too), it might be useful to hide it's version number.

If you are on CentOS or Red Hat Enterprise Linux, nginx configuration is located at:


Setting that needs to be added is very similar to Apache's:

server_tokens off;

Make sure to add it in http context. You might already have configuration file for your “virtual host” similar like:


Since files under conf.d are automatically included in http context, all you need is to add server_tokens in the beginning of the file.

Restart nginx and there you go – instead of:

Server: nginx/1.15.7

we will see:

Server: nginx


Stay tuned for more #server tips.

Care to comment? Toot me on Mastodon: @gytis@mastodon.lt.


from Gytis Repečka

Hello and welcome to miniblog by Gytis Repečka! While I run my main blog at gyt.is which is powered by WordPress, this is my second federated platform (after mastodon.lt) which I installed to join fediverse.

You might as well notice domain – fedi.dev is shortened version of “fediverse”. Well, I actually scored fediverse.dev too as soon as .dev top level domain became available in February 28th.

Stay tuned for more content (I'm still learning markdown)!