Author

Richard

DevOps & Software Engineer

Vietnam https://thinhhv.com 13 posts
How to resolve error: "dl-cdn.alpinelinux.org temporary error (try again later) No such file or directory"

How to resolve error: "dl-cdn.alpinelinux.org temporary error (try again later) No such file or directory"

This is solution apk add \ -X https://nl.alpinelinux.org/alpine/v3.15/main \ -X https://nl.alpinelinux.org/alpine/v3.15/community \ git openssh You can replace the above mirror with this list: https://nl.alpinelinux.org/alpine/MIRRORS.txt http://dl-cdn.alpinelinux.org/alpine/ http://uk.alpinelinux.org/alpine/ http://dl-4.alpinelinux.org/alpine/ http://dl-5.alpinelinux.org/alpine/ http://mirror.yandex.ru/mirrors/alpine/ http://mirrors.gigenet.com/alpinelinux/ http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/ http://mirror.leaseweb.com/alpine/ http://mirror.fit.cvut.cz/alpine/ http://alpine.mirror.far.fi/ http://alpine.mirror.wearetriple.com/ http://mirror.clarkson.edu/alpine/ http://mirror.aarnet.edu.au/pub/alpine http://mirrors.dotsrc.org/alpine/ http://ftp.halifax.rwth-aachen.de/alpine/...
Continue reading
Restricting Access with HTTP Basic Authentication in Nginx

Restricting Access with HTTP Basic Authentication in Nginx

Restricting access to your website or some parts of it by implementing a username/password authentication. Prerequisites Nginx Password file creation utility such as apache2-utils (Debian, Ubuntu) or httpd-tools (RHEL/CentOS/Oracle Linux). Creating a Password File 1. The first time we use this utility, we need to add the -c option to create the specified file....
Continue reading
Nginx warning: using uninitialized "x" variable while logging request

Nginx warning: using uninitialized "x" variable while logging request

Recently, when checking nginx's log, I found a very strange log, so I tried my best to check it. This is nginx's error_log: 2022/01/08 11:20:42 [warn] 17711#17711: *7482384 using uninitialized "server" variable while logging request, client: 45.135.xxx.xx6, server: 127.0.0.1, request: "GET /node_modules/../../../../../etc/passwd HTTP/1.1" This same as the server is under...
Continue reading