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).
If the host runs on Linux then cross-building (from MacOS to Linux) required, right? GNAT does that, right?
The host is already running an HTTP server program (probably Apache).
Must it be turned off? How?
In general, can the executable be launched on a VPS (Virtual Private Server)? Which port?
Will dynamic linking work? I'm guessing not, so, static; but then, will
GNAT integrate the right libraries for Linux in the executable?
Will "Community GNAT" do? (Instead of GNAT Pro.)
Although we had a lot more Ada than JS, we spent a lot more effort
correcting JS errors than Ada errors.
But security breaches mainly use known bugs in Apache... If you write
your own server with AWS, the attacker knows nothing about the software
that answers!
Le 12/09/2024 à 16:25, Marius Alves a écrit :
The host is already running an HTTP server program (probably Apache).The usual way is to use Apache (or nginx or another one) as a front end.
Must it be turned off? How?
Your application uses port 1080 (or something else) and the front end
relays this port to the external 80 port.
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.
On Thu, 12 Sep 2024 19:06:08 +0200, J-P. Rosen wrote:No, AWS is public and there is nothing hidden. Just that, since there
But security breaches mainly use known bugs in Apache... If you write
your own server with AWS, the attacker knows nothing about the software
that answers!
That’s called “security through obscurity”. Not recommended.
On Thu, 12 Sep 2024 18:22:28 +0200, Jeffrey R.Carter wrote:
Although we had a lot more Ada than JS, we spent a lot more effort
correcting JS errors than Ada errors.
Did you “use strict”?
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 webI don't know about 1dollar, but a typical web hosting provider will
hosting provider (e.g. 1dollar-webhosting.com).
The host is already running an HTTP server program (probably Apache).A typical web host won't let you turn off their web server. They serve
Must it be turned off? How?
In general, can the executable be launched on a VPS (Virtual Private Server)?Sure. In a VPS you have the whole operating system to yourself (maybe
If the host runs on Linux then cross-building (from MacOS to Linux) required, right? GNAT does that, right?GCC – and thus GNAT – can be built as a cross-compiler. Perhaps you
Or, must the program be built in the host? (Thus requiring GNAT be there.)No, but in my opinion it's much easier that way. Either build on the
Will dynamic linking work? I'm guessing not, so, static; but then, willCross-compilation should be able to work with shared libraries.
GNAT integrate the right libraries for Linux in the executable?
Which port?Normally port 443, because of course you'll use HTTPS, won't you?
Maybe some web hosts support CGI or FastCGI.
On Thu, 12 Sep 2024 19:06:08 +0200, J-P. Rosen wrote:
But security breaches mainly use known bugs in Apache... If you write
your own server with AWS, the attacker knows nothing about the software
that answers!
That's called "security through obscurity". Not recommended.
On Fri, 13 Sep 2024 16:33:15 +0200, Björn Persson wrote:
Maybe some web hosts support CGI or FastCGI.
Don’t do that.
We use FastCGI with Nginx to host tons of Wordpress web sites via
PHP_FPM. FastCGI allows us to implement an extremely high-performance
FastCGI cache. Caching is essential for slow and interpreted PHP
applications and/or high-traffic applications, whatever the language
used.
In the case I mentioned (PHP websites), FastCGI is a must and the
FastCGI cache a performance grall.
But for dynamic sites (without static datas) written without PHP, I
agree that the WebSockets protocol is indeed ideal.
WebSockets is a http1 only protocol.
OK, PHP doesn’t do WebSockets anyway, so that’s probably OK.
But for dynamic sites (without static datas) written without PHP, I
agree that the WebSockets protocol is indeed ideal.
WebSockets is essential for certain kinds of interactivity.
Apparently not <https://www.ietf.org/archive/id/draft-ietf-httpbis-h3-websockets-02.html>.
work with Gnoga (https://v22.soweb.io).
Runs on Android/IOS.
Does that require an internet web server?
Runs on Android/IOS.
Yes v22.Gui/Gnoga is responsive. Tested with 5" smartphones as old as Nexus 5
(with a browser more recent than the stock one to handle websockets). Also tested on 43” 4K ;)
Interesting. How do you compile for Android/IOS?
Incidentally, the screenshot you have for the Tic-Tac-Toe demo seems to
be Othello.
There's some confusion, I'm having trouble expressing myself. v22.Gui is a framework on top of Gnoga, with specific CSS, making it possible to obtain a responsive and therefore Android/IOS compatible application, through the smartphone's web browser.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,113 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 492334:24:42 |
| Calls: | 14,238 |
| Files: | 186,312 |
| D/L today: |
3,234 files (1,051M bytes) |
| Messages: | 2,514,806 |