From 7b27411e2a5d810e662553dcb529ca2b6176067d Mon Sep 17 00:00:00 2001
From: Wolfgang Hottgenroth
Date: Wed, 2 May 2018 15:14:52 +0200
Subject: [PATCH] comments on logfiles
---
Makefile | 11 ++---
abstracts.inc | 23 ----------
index.html | 65 ++++++++++++----------------
index.m4 | 9 +++-
m4/indexAbstractsEntry.m4 | 5 ---
m4/indexTOCEntry.m4 | 5 ++-
m4/macros.m4 | 4 +-
m4/posts.mk | 2 +-
pages/impressum/article.html | 15 ++++---
pages/impressum/article.m4 | 12 +++---
pages/keys/article.html | 3 +-
plain/Makefile | 12 ++++++
plain/logfile.html | 73 ++++++++++++++++++++++++++++++++
plain/logfile.m4 | 63 +++++++++++++++++++++++++++
posts/2013-06-26.01/article.html | 3 +-
posts/2013-06-27.01/article.html | 3 +-
toc.inc | 34 +++++++++------
17 files changed, 233 insertions(+), 109 deletions(-)
delete mode 100644 abstracts.inc
delete mode 100644 m4/indexAbstractsEntry.m4
create mode 100644 plain/Makefile
create mode 100644 plain/logfile.html
create mode 100644 plain/logfile.m4
diff --git a/Makefile b/Makefile
index ba40bce..e747655 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-POSTS = $(shell find ./posts -mindepth 1 -type d)
+POSTS = $(shell find ./posts -mindepth 1 -type d | sort -r)
PAGES = $(shell find ./pages -mindepth 1 -type d)
.PHONY: all
@@ -13,21 +13,22 @@ posts:
pages:
for d in $(PAGES); do (echo $$d; cd $$d; $(MAKE) -f ../../m4/posts.mk); done
+.PHONY: plain
+plain:
+ cd ./plain; $(MAKE)
+
.PHONY: clean
clean:
for d in $(POSTS); do (cd $$d; $(MAKE) -f ../../m4/posts.mk cleanposts); done
for d in $(PAGES); do (cd $$d; $(MAKE) -f ../../m4/posts.mk cleanposts); done
-rm -f toc.inc
- -rm -f abstracts.inc
-rm -f index.html
.PHONY: index
-index: posts pages
+index: posts pages plain
-rm -f toc.inc
- -rm -f abstracts.inc
for d in $(PAGES); do (cd $$d; m4 -D URL=$$d/article.html ../../m4/macros.m4 article.m4 ../../m4/indexTOCEntry.m4) >> toc.inc; done
for d in $(POSTS); do (cd $$d; m4 -D URL=$$d/article.html ../../m4/macros.m4 article.m4 ../../m4/indexTOCEntry.m4) >> toc.inc; done
- for d in $(POSTS); do (cd $$d; m4 -D URL=$$d/article.html ../../m4/macros.m4 article.m4 ../../m4/indexAbstractsEntry.m4) >> abstracts.inc; done
m4 ./m4/macros.m4 index.m4 > index.html
.PHONY: install
diff --git a/abstracts.inc b/abstracts.inc
deleted file mode 100644
index 4a44ff3..0000000
--- a/abstracts.inc
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
2013-06-26 - A Web-controlled Picture Frame
-A father-and-son weekend project with an Arduino, a stepper motor and a couple of family photos.
-read more
-
-
-
-
-
-
-
-
-
2013-06-27 - Children Protection for Postfix-based EMail-Server
-
-read more
-
diff --git a/index.html b/index.html
index ec3ebfb..79a8ce9 100644
--- a/index.html
+++ b/index.html
@@ -1,71 +1,60 @@
-
- my homepage
+ Projects - just for fun
Projects - just for fun
+
+I moved my blog away from wordpress.com. Reason is simple: I've no clue of DSGVO and I don't want to spend any time in it. And since I don't know which date wordpress.com is collecting and processing I stopped using it.
+
+
+Here, I've everything under my on control and I know exactly which of your data is processed: nearly no data. There are no cookies, no advertising banners, no web analytics. Just the webserver is writing a logfile, which is rotated away and deleted after 14 days. However, this logfile is not analysed or computed automatically, I just consult it occasionally in case of problems. To learn more about this logfile, see here. If this is not okay for you, just go away.
+
+
Overview
-Abstracts
-
-
-
-
-
-
-
-
-
2013-06-26 - A Web-controlled Picture Frame
-A father-and-son weekend project with an Arduino, a stepper motor and a couple of family photos.
-read more
-
-
-
-
-
-
-
-
-
2013-06-27 - Children Protection for Postfix-based EMail-Server
-
-read more
-
-
diff --git a/index.m4 b/index.m4
index 94d3e88..d633d13 100644
--- a/index.m4
+++ b/index.m4
@@ -2,11 +2,16 @@ HEADER
Projects - just for fun
+
+I moved my blog away from wordpress.com. Reason is simple: I've no clue of DSGVO and I don't want to spend any time in it. And since I don't know which date wordpress.com is collecting and processing I stopped using it.
+
+
+Here, I've everything under my on control and I know exactly which of your data is processed: nearly no data. There are no cookies, no advertising banners, no web analytics. Just the webserver is writing a logfile, which is rotated away and deleted after 14 days. However, this logfile is not analysed or computed automatically, I just consult it occasionally in case of problems. To learn more about this logfile, see here. If this is not okay for you, just go away.
+
+
Overview
-Abstracts
-include(`abstracts.inc')
FOOTER
\ No newline at end of file
diff --git a/m4/indexAbstractsEntry.m4 b/m4/indexAbstractsEntry.m4
deleted file mode 100644
index 3d63b6c..0000000
--- a/m4/indexAbstractsEntry.m4
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
DATE - TITLE
-ABSTRACT
-read more
-
diff --git a/m4/indexTOCEntry.m4 b/m4/indexTOCEntry.m4
index 3807782..1b8a718 100644
--- a/m4/indexTOCEntry.m4
+++ b/m4/indexTOCEntry.m4
@@ -1 +1,4 @@
-DATE - TITLE
+
+ifdef(`DATE', `DATE -')TITLE
+ifdef(`ABSTRACT', `ABSTRACT')
+
diff --git a/m4/macros.m4 b/m4/macros.m4
index 1627a06..05ce7d5 100644
--- a/m4/macros.m4
+++ b/m4/macros.m4
@@ -1,7 +1,7 @@
define(`HEADER', `
- my homepage
+ Projects - just for fun
')
@@ -9,5 +9,3 @@ define(`FOOTER', `
')
-define(`ABSTRACT', `')
-define(`DATE', `')
\ No newline at end of file
diff --git a/m4/posts.mk b/m4/posts.mk
index d52fd83..62f3028 100644
--- a/m4/posts.mk
+++ b/m4/posts.mk
@@ -1,6 +1,6 @@
include ../../m4/mkfile.mk
-article.html: ../../m4/macros.m4 ../../m4/post.m4 article.m4
+article.html: article.m4
m4 ../../m4/macros.m4 article.m4 ../../m4/post.m4 > article.html
.PHONY: cleanposts
diff --git a/pages/impressum/article.html b/pages/impressum/article.html
index e4b58d9..c22807c 100644
--- a/pages/impressum/article.html
+++ b/pages/impressum/article.html
@@ -2,23 +2,24 @@
-
- my homepage
+ Projects - just for fun
-Wolfgang Hottgenroth
+Wolfgang Hottgenroth
-woho@hottis.de
+woho@hottis.de
-https://gitlab.com/wolutator
+https://gitlab.com/wolutator
-https://www.xing.com/profile/Wolfgang_Hottgenroth
+https://www.xing.com/profile/Wolfgang_Hottgenroth
-https://twitter.com/wollud1969
+https://twitter.com/wollud1969
+
+https://keybase.io/wolutator/
diff --git a/pages/impressum/article.m4 b/pages/impressum/article.m4
index 529aff6..5d2a4be 100644
--- a/pages/impressum/article.m4
+++ b/pages/impressum/article.m4
@@ -1,12 +1,14 @@
define(`TITLE', `Impressum')
define(`CONTENT', `
-Wolfgang Hottgenroth
+Wolfgang Hottgenroth
-woho@hottis.de
+woho@hottis.de
-https://gitlab.com/wolutator
+https://gitlab.com/wolutator
-https://www.xing.com/profile/Wolfgang_Hottgenroth
+https://www.xing.com/profile/Wolfgang_Hottgenroth
-https://twitter.com/wollud1969
+https://twitter.com/wollud1969
+
+https://keybase.io/wolutator/
')
\ No newline at end of file
diff --git a/pages/keys/article.html b/pages/keys/article.html
index 70d5ac7..5118b2e 100644
--- a/pages/keys/article.html
+++ b/pages/keys/article.html
@@ -2,10 +2,9 @@
-
- my homepage
+ Projects - just for fun
diff --git a/plain/Makefile b/plain/Makefile
new file mode 100644
index 0000000..89ec687
--- /dev/null
+++ b/plain/Makefile
@@ -0,0 +1,12 @@
+include ../m4/mkfile.mk
+
+
+%.html : %.m4
+ m4 ../m4/macros.m4 $< > $@
+
+
+logfile.html: logfile.m4
+
+.PHONY: cleanplain
+cleanplain:
+ -rm -f logfile.html
diff --git a/plain/logfile.html b/plain/logfile.html
new file mode 100644
index 0000000..c9e1cba
--- /dev/null
+++ b/plain/logfile.html
@@ -0,0 +1,73 @@
+
+
+
+
+
+ Projects - just for fun
+
+
+
+
+
+This homepage is hosted on a standard Debian Stretch installation with a standard Apache webserver running on it.
+
+
+
+The logfile is written using this configuration statement:
+
+
+LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
+
+
+
+
+The meaning of the format string elements are:
+
+
+
+ %h |
+ Remote hostname or IP address. This is your address. |
+
+ %l |
+ Remote logname, if provided by identd. This is usually empty and represented by a dash. |
+
+ %u |
+ Remote username if the request was authenticated. This is, what you would enter in a basic authentication dialog. The public part of this homepage has no authenticated areas. |
+
+ %t |
+ The date and time of the request. |
+
+ %r |
+ The first line of the request, usually contains the URL you are requesting. |
+
+ $>s |
+ The final status code of this request. |
+
+ %O |
+ Bytes sent including headers. |
+
+ %{Referer}i |
+ What your browser puts into the variable Referer of your request. This is usually the address of the page which sent you here, like a search engine (Google, ...). |
+
+ %{User-Agent}i |
+ What your browser puts into the variable User-Agent of your request, usually its own software identification. |
+
+
+
+
+
+A typical log entry looks like this:
+
+
+217.7.123.85 - - [02/May/2018:14:53:05 +0200] "GET / HTTP/1.1" 200 4984 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36"
+
+
+
+
+For more information consult the Apache documentation at http://httpd.apache.org/docs/2.4/mod/mod_log_config.html.
+
+
+
+
+
+
diff --git a/plain/logfile.m4 b/plain/logfile.m4
new file mode 100644
index 0000000..c2b1978
--- /dev/null
+++ b/plain/logfile.m4
@@ -0,0 +1,63 @@
+HEADER
+
+
+This homepage is hosted on a standard Debian Stretch installation with a standard Apache webserver running on it.
+
+
+
+The logfile is written using this configuration statement:
+
+
+LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
+
+
+
+
+The meaning of the format string elements are:
+
+
+
+ %h |
+ Remote hostname or IP address. This is your address. |
+
+ %l |
+ Remote logname, if provided by identd. This is usually empty and represented by a dash. |
+
+ %u |
+ Remote username if the request was authenticated. This is, what you would enter in a basic authentication dialog. The public part of this homepage has no authenticated areas. |
+
+ %t |
+ The date and time of the request. |
+
+ %r |
+ The first line of the request, usually contains the URL you are requesting. |
+
+ $>s |
+ The final status code of this request. |
+
+ %O |
+ Bytes sent including headers. |
+
+ %{Referer}i |
+ What your browser puts into the variable Referer of your request. This is usually the address of the page which sent you here, like a search engine (Google, ...). |
+
+ %{User-Agent}i |
+ What your browser puts into the variable User-Agent of your request, usually its own software identification. |
+
+
+
+
+
+A typical log entry looks like this:
+
+
+217.7.123.85 - - [02/May/2018:14:53:05 +0200] "GET / HTTP/1.1" 200 4984 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36"
+
+
+
+
+For more information consult the Apache documentation at http://httpd.apache.org/docs/2.4/mod/mod_log_config.html.
+
+
+
+FOOTER
\ No newline at end of file
diff --git a/posts/2013-06-26.01/article.html b/posts/2013-06-26.01/article.html
index 4e5e663..cadc910 100644
--- a/posts/2013-06-26.01/article.html
+++ b/posts/2013-06-26.01/article.html
@@ -5,10 +5,9 @@
-
- my homepage
+ Projects - just for fun
diff --git a/posts/2013-06-27.01/article.html b/posts/2013-06-27.01/article.html
index cb3ec4e..49e8db7 100644
--- a/posts/2013-06-27.01/article.html
+++ b/posts/2013-06-27.01/article.html
@@ -4,10 +4,9 @@
-
- my homepage
+ Projects - just for fun
diff --git a/toc.inc b/toc.inc
index d41cc08..695c9ab 100644
--- a/toc.inc
+++ b/toc.inc
@@ -1,25 +1,33 @@
+
+Impressum
+
+
+
+
+
+
+Keys
+
+
+
+
+
- - Impressum
+
+2013-06-27 -Children Protection for Postfix-based EMail-Server
-
-
- - Keys
+
-
-2013-06-26 - A Web-controlled Picture Frame
-
-
-
-
-
-
-2013-06-27 - Children Protection for Postfix-based EMail-Server
+
+2013-06-26 -A Web-controlled Picture Frame
+A father-and-son weekend project with an Arduino, a stepper motor and a couple of family photos.
+