From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada/GNAT/AWS-friendly web hosting Date: Thu, 12 Sep 2024 20:48:29 +0200 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 12 Sep 2024 20:48:28 +0200 (CEST) Injection-Info: dont-email.me; posting-host="8429d6de9154017665bd68fe9f1c7795"; logging-data="397393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/19edtz9uas86eRF6JopbVrjOdAERC88=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:7NKv1HDMutXlZgokPkn0142ZUqA= Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:66350 List-Id: 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