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 webAdalog's site (https://www.adalog.fr/) is a standalone program written
hosting provider (e.g. 1dollar-webhosting.com).
Anyone done that? I've searched but could not find.
Thanks.No
_____
Some specific questions on my mind follow.
Is a MacOS host required (e.g. Ultahost 15 euros/month; I'd rather stay
with 1dollar)?
If the host runs on Linux then cross-building (from MacOS to Linux) required, right? GNAT does that, right?Never tried, but no reason it shouldn't be possible
Or, must the program be built in the host? (Thus requiring GNAT be there.)That's what I do
The host is already running an HTTP server program (probably Apache).Of course, you cannot have two programs listening on the same port, so
Must it be turned off? How?
In general, can the executable be launched on a VPS (Virtual Private Server)? Which port?The port is given by the initial data of AWS
Will dynamic linking work? I'm guessing not, so, static; but then, willYou just compile your program like any other Ada program
GNAT integrate the right libraries for Linux in the executable?
Will "Community GNAT" do? (Instead of GNAT Pro.)Yes, that's what I do
Are those the right questions?All questions are right....
Thanks, thanks, thanks, thanks, thanks, thanks and thanks.You're welcome
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).
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?
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).
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 endBut security breaches mainly use known bugs in Apache... If you write
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.
This way, the security stuff is manage by the front end, not yourBut security breaches mainly use known bugs in Apache... If you write
application. You can also run multiple applications, each being
redirected to its domain name/path.
your own server with AWS, the attacker knows nothing about the software
that answers! And as for buffer overflows attacks... well, it's Ada.
You'll see some handled Constraint_Error in the log file, end of story!
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: | 991 |
Nodes: | 10 (0 / 10) |
Uptime: | 81:05:09 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,663 |