comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada/GNAT/AWS-friendly web hosting
Date: Thu, 12 Sep 2024 20:48:29 +0200	[thread overview]
Message-ID: <vbvd1s$c42h$1@dont-email.me> (raw)
In-Reply-To: <vbutl5$8a99$5@dont-email.me>

On 2024-09-12 16:25, Marius Alves wrote:
> Researching how to build an HTTP server (serving a website) on a local 
> machine (MacOS) using AWS (Ada Web Server) and deploy it on a web 
> hosting provider (e.g. 1dollar-webhosting.com).

That depends on what the provider would allow you to upload to the host. 
Likely nothing executable... (:-))

> If the host runs on Linux then cross-building (from MacOS to Linux) 
> required, right? GNAT does that, right?

It is possible, but far simpler would be a virtual machine running 
Linux. E.g. I compile for Linux targets on virtual machines. Only for 
ARM I am using physical machines. You must know what kind of Linux your 
provider has in order to choose the right version of the libc etc.

> The host is already running an HTTP server program (probably Apache). 
> Must it be turned off? How?

Ask the provider. You would need the ports free.

> In general, can the executable be launched on a VPS (Virtual Private 
> Server)? Which port?

No idea.

> Will dynamic linking work? I'm guessing not, so, static; but then, will 
> GNAT integrate the right libraries for Linux in the executable?

If you ship the libraries together with the server. Then if the host 
runs Apache it must have some TLS library installed. You must learn the 
version an link against it.
In any case you need either OpenSSL or else GNUTLS. The HTTP server from 
Simple Components can use both. I believe that either can be built as a 
static library. I see no reason why AWS could not be linked statically.
BTW you must maintain certificates on the server.

> Will "Community GNAT" do? (Instead of GNAT Pro.)

I am not sure if all-static build were possible, e.g. libc, libgnat.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  parent reply	other threads:[~2024-09-12 18:48 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
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 [this message]
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