<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Apache on ads' corner</title><link>https://andreas.scherbaum.la/tags/apache/</link><description>Recent content in Apache on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 26 Dec 2024 00:00:00 +0100</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/apache/index.xml" rel="self" type="application/rss+xml"/><item><title>Add canonical headers for files in Apache2</title><link>https://andreas.scherbaum.la/post/2024-12-26_add-canonical-headers-for-files-in-apache2/</link><pubDate>Thu, 26 Dec 2024 00:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2024-12-26_add-canonical-headers-for-files-in-apache2/</guid><description>&lt;p&gt;Search engines will complain if websites and files do not have a &lt;a href="https://en.wikipedia.org/wiki/Canonical_link_element"&gt;canonical name&lt;/a&gt;, and appear under multiple different URLs with the same content. Especially for &lt;a href="https://en.wikipedia.org/wiki/Search_engine_optimization"&gt;search engine optimization&lt;/a&gt; this is a big no no.&lt;/p&gt;&#10;&lt;h2 id="how-does-that-happen"&gt;How does that happen&lt;/h2&gt;&#10;&lt;p&gt;Someone might link to your resource with a tracking link, as example this entry in the webserver log:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;xyz.xyz.xyz.xyz - - [20/Dec/2024:01:04:57 +0100] &amp;#34;GET /writings/Add_Geocoordinates_to_your_addresses_in_PostgreSQL_-_Meetup_HH_April_2024.pdf?fbclid=&amp;lt;some random id&amp;gt; HTTP/1.1&amp;#34; 200 1032842 &amp;#34;-&amp;#34; &amp;#34;Mozilla/&amp;lt;some random browser&amp;gt;&amp;#34;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The attached &lt;code&gt;fbclid&lt;/code&gt; header makes it obvious that this PDF was posted on &lt;em&gt;Facebook&lt;/em&gt;, and then &lt;em&gt;Facebook&lt;/em&gt; attaches a semi-random string, it&amp;rsquo;s called the &lt;em&gt;Facebook Click Identifier&lt;/em&gt;. It is used to circumvent Ad-blockers and Third-Party-Cookie Protection and allows &lt;em&gt;Facebook&lt;/em&gt; to track the performance of the link.&lt;/p&gt;</description></item><item><title>New Blog</title><link>https://andreas.scherbaum.la/post/2023-11-25_new-blog/</link><pubDate>Fri, 24 Nov 2023 19:17:35 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2023-11-25_new-blog/</guid><description>&lt;p&gt;New blog. Or, more exactly, new blog software.&lt;/p&gt;&#10;&lt;p&gt;I moved this blog from &lt;a href="https://en.wikipedia.org/wiki/Serendipity_(software)"&gt;Serendipity&lt;/a&gt; to &lt;a href="https://en.wikipedia.org/wiki/Hugo_(software)"&gt;Hugo&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Using fail2ban to block unfriendly web requests</title><link>https://andreas.scherbaum.la/post/2022-12-09_using-fail2ban-to-block-unfriendly-web-requests/</link><pubDate>Fri, 09 Dec 2022 17:21:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2022-12-09_using-fail2ban-to-block-unfriendly-web-requests/</guid><description>&lt;p&gt;Every time I peek into the webserver logfiles, I find quite a few 404 requests trying to figure out if certain exploits exist on this server. Now I get that these are automated attempts, and the number of requests coming from one IP show that they try several different exploits and path names. Nevertheless I thought that I don’t need this in my log, and on my webserver. &lt;a href="https://www.fail2ban.org/"&gt;fail2ban&lt;/a&gt; for the rescue.&lt;/p&gt;</description></item><item><title>Blog website crawlers and bots in Apache2</title><link>https://andreas.scherbaum.la/post/2021-03-21_blog-website-crawlers-and-bots-in-apache2/</link><pubDate>Sun, 21 Mar 2021 19:08:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-03-21_blog-website-crawlers-and-bots-in-apache2/</guid><description>&lt;p&gt;Found a couple more bots crawling my website, and from the look at online resources it seems I catched a few of the bad guys. Crawlers which ignore the &lt;a href="https://en.wikipedia.org/wiki/Robots_exclusion_standard"&gt;robots.txt&lt;/a&gt; standard, and just crawl a website for content.&lt;/p&gt;&#10;&lt;p&gt;Decided to do something against it, and added a filter in &lt;a href="https://httpd.apache.org/"&gt;Apache2&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Apache Karaf client in openHAB, and the "Session has been closed" error</title><link>https://andreas.scherbaum.la/post/2020-04-21_apache-karaf-client-in-openhab-and-the-session-has-been-closed-error/</link><pubDate>Tue, 21 Apr 2020 20:39:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-21_apache-karaf-client-in-openhab-and-the-session-has-been-closed-error/</guid><description>&lt;p&gt;Don&amp;rsquo;t you love it when things suddenly stop working?&lt;/p&gt;&#10;&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; installation I have a check which verifies that the weather data is up to date. Otherwise it restarts the openhab2 service. And this check stopped working &amp;hellip; Leaving the kitchen display not updated for a longer time. The same display where I expect the entire installation to &amp;ldquo;just work&amp;rdquo;, and don&amp;rsquo;t create so many different problems. Seems to be a hard problem to have an &lt;em&gt;openHAB&lt;/em&gt; installation without any trouble &amp;hellip;&lt;/p&gt;</description></item></channel></rss>