comp.lang.ada
 help / color / mirror / Atom feed
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Subject: Re: Ada/GNAT/AWS-friendly web hosting
Date: Thu, 12 Sep 2024 22:40:35 -0000 (UTC)	[thread overview]
Message-ID: <vbvql3$esm6$12@dont-email.me> (raw)
In-Reply-To: vbuvbl$nsk$1@rasp.pasdenom.info

On Thu, 12 Sep 2024 16:54:45 +0200, DrPi wrote:

> Le 12/09/2024 à 16:25, Marius Alves a écrit :
>
>> The host is already running an HTTP server program (probably Apache).
>> Must it be turned off? How?
>>
> The usual way is to use Apache (or nginx or another one) as a front end.
> Your application uses port 1080 (or something else) and the front end
> relays this port to the external 80 port.

Yup, I do things this way for my Python+ASGI code, too. This called a 
“reverse proxy”, though I don’t know why -- I think “server-side proxy” 
would be more accurate.

Make sure your back-end server is listening only on a loopback address: 
127.0.0.0/8 (IPv4) or ::1 (IPv6). That way the only access to it from 
outside the machine is through the public web-server front end.

(Question to ponder: why does Ipv4 offer over 16 million different 
loopback addresses, while IPv6, which its much larger address space, has 
to make do with only one?)

> This way, the security stuff is manage by the front end, not your
> application. You can also run multiple applications, each being
> redirected to its domain name/path.

Yup.

  parent reply	other threads:[~2024-09-12 22:40 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-12 14:25 Ada/GNAT/AWS-friendly web hosting Marius Alves
2024-09-12 14:48 ` J-P. Rosen
2024-09-12 14:54 ` DrPi
2024-09-12 17:06   ` J-P. Rosen
2024-09-12 17:16     ` Kevin Chadwick
2024-09-12 22:35     ` Lawrence D'Oliveiro
2024-09-13  6:46       ` J-P. Rosen
2024-09-14  6:38       ` Randy Brukardt
2024-09-12 22:40   ` Lawrence D'Oliveiro [this message]
2024-09-12 16:22 ` Jeffrey R.Carter
2024-09-12 22:29   ` Lawrence D'Oliveiro
2024-09-13  9:03     ` Jeffrey R.Carter
2024-09-12 18:48 ` Dmitry A. Kazakov
2024-09-13 13:15 ` Stéphane Rivière
2024-09-13 14:33 ` Björn Persson
2024-09-13 22:09   ` Lawrence D'Oliveiro
2024-09-14  7:01     ` Stéphane Rivière
2024-09-14  7:26       ` Lawrence D'Oliveiro
2024-09-14  8:51         ` Stéphane Rivière
2024-09-14  9:41           ` Lawrence D'Oliveiro
2024-09-14 10:29             ` Stéphane Rivière
2024-09-14 12:02               ` Kevin Chadwick
2024-09-14 13:00                 ` Stéphane Rivière
2024-09-14 14:34                   ` Jeffrey R.Carter
2024-09-14 16:11                     ` Stéphane Rivière
2024-09-14 18:04                       ` Jeffrey R.Carter
2024-09-13 17:36 ` Nioclás Pól Caileán de Ghloucester
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox