Ada Web Server: Status page

One really nice feature of AWS is it's baked in support for server status information.

It would be a simple to include all sorts of details of the running server for a custom dashboard, and there is also a ready made template for seeing many of those while the server is running.

Status page documentation lists the values available and tells that you just need the aws_status.thtml template in place for you to see them. You can find a ready made example of that template in the sources of AWS.

What the doc page doesn't say, is that you need to configure the feature a little. Have a configuration file for your server next to the executable, let's name it myserver.ini for example. In that file you need to have the following lines:


Admin_URI       /admin
Admin_Password  b6f40a2907436718ab246a4bc48e7fd8

There you have your admin page URL defined, relative to the server root address. Also be sure to set your password. Now you have to generate this password, and not try to write it directly there (as I first did, many times...). You need to use the AWS utility called aws_password to generate one, and then copy it to the ini file.

Now when you start your server and visit /admin page, you can see something like this:

 

Comments

Popular posts from this blog

Alire - Ada Library Repository

Ada web development

First post