Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Reverse Proxy with Apache2
Date: Tue, 18 Jan 2022 23:23:56
Message-Id: 0ecc3327-7855-ad14-f23d-3efe28119961@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] Reverse Proxy with Apache2 by Anatoly Laskaris
1 On 1/18/22 1:30 PM, Anatoly Laskaris wrote:
2 > Age migth mean a lot when we are talking about software. Modern software
3 > usually is easier to configure, has sane defaults, more secure and has
4 > integration with other modern software.
5
6 I'll concede that those points are /possibilities/. But they are not
7 guaranteed.
8
9 > And is much more popular in the community meaning better support.
10
11 I do not agree that something being more common means, much less
12 implies, better support. There are an awful lot of bad recommendations
13 all over the Internet.
14
15 > I'm was not talking about adding software, I was talking about replacing
16 > software.
17
18 But you are. Replacing something inherently implies adding and / or
19 configuring something old with something new.
20
21 > Time saved in managing complex software that does a simple task can
22 > be applied elsewhere.
23
24 Sometimes yes, sometimes no.
25
26 > In regards to "already having a software" most modern applications don't
27 > require "having" them. It works out of the box, usually with one command
28 > and you can switch parts of your infrastructure without pain thanks to
29 > containers (or statically linked binaries in golang and rust) without
30 > downtime (if done right).
31
32 "if done right" is so over the top the /operative/ /phrase/ of that
33 statement that it's not even remotely funny.
34
35 > Dynamic ports with service discovery == no port conflicts.
36
37 There's no dynamic ports / service discovery in what the OP asked about.
38
39 The OP asked how to configure a feature (reverse proxy) of the software
40 that they are already (Apache HTTPD) using for a part of a URL
41 (https://192.168.0.15:443/zv) for a service that's currently listening
42 on a given IP and port pair (https://192.168.0.15:443/).
43
44 So please elaborate on what the right way is to replace (as in add new
45 and remove old) the existing software /or/ split the IP & port
46 (192.168.0.15 TCP port 443) across multiple daemons is. I would very
47 much be interested in learning how to do this the right way.
48
49 I can think of many ways to do this, but all of which require something
50 intercepting the port & IP pair at some point up stream.
51
52 > Not that old as apache.
53
54 I take your statement to be that the Apache HTTPD developers and
55 administrators have more experience than Nginx / caddy / traefik
56 developers and administrators by the simple fact that it has existed longer.
57
58 What /new/ thing are you using to communicate with caddy / traefik if
59 you don't use the old crufty IPv4 / IPv6?
60
61 > Nginx is still widly used (contrast to apache),
62
63 The first four reports I found when searching for web server popularity
64 show that Apache and Nginx are the top two popular servers. Which one
65 is number one depends on the report.
66
67 Link - Global Web Server Market Share January 2022
68 - https://hostadvice.com/marketshare/server/
69
70 Link - Web and Application Servers Software Market Share
71 - https://www.datanyze.com/market-share/web-and-application-servers--425
72
73 Link - Usage statistics of web servers
74 - https://w3techs.com/technologies/overview/web_server
75
76 Link - January 2022 Web Server Survey
77 - https://news.netcraft.com/archives/category/web-server-survey/
78
79 My opinion is that being the first, or the close second is a good
80 indication that Apache is still wildly used.
81
82 > but is being replaced by caddy/traefik. Apache is ancient and I've
83 > never seen it running in production.
84
85 If you've never seen the first or second most popular web server running
86 in production, I can only question where you are looking.
87
88 I know multiple people that have run Apache HTTP Server (both by Apache
89 and rebranded by IBM / Oracle) web server in production on multiple
90 platforms for each and every year for the last two decades. I've
91 personally run Apache in production for that entire time.
92
93
94
95 --
96 Grant. . . .
97 unix || die