How to put your own domain on an awx link
An app on an awx computer can open at an address you own, with its own padlock. Here is a test run with a QR code generator.
A link like myapp.awanbox.com is fine for a class or a quick demo. For a portfolio, a club page or a small project you may want your own name on it, such as app.yourname.com.
We tested it with a small QR code generator: type a link, get a QR code with a logo in the middle, and download it. The app runs on an awx computer. Its address is app.qrlogo.org, a subdomain of a domain we own, qrlogo.org. Own domains work on the paid plan, one per account. The paid plan is not on sale yet, so we switch people over by hand. The pictures are from a real run on the live service.
The domain was new and empty, so the records below are everything in its DNS.
What you start with
- An app running on your awx computer, such as a Flask page on port 8000, with a link or custom name already working.
- A domain you own, and access to its DNS settings (the place where your registrar or host lists records).
- A name in mind. A subdomain such as
app.yourname.comworks everywhere. A bare domain (yourname.com) works too, if your DNS provider can point the root of the domain at another name. It calls this CNAME flattening, ALIAS or ANAME. If yours cannot, usewwwand redirect the bare domain to it.
Step 1: tell awx your subdomain
Open the computer in the awx dashboard, go to the Links and domains tab, and find the card Your own domain. Type the subdomain and the port your app listens on, then press Add domain. Our QR generator listens on port 8000.
Step 2: add the records at your domain
The card now shows what to add at the DNS provider of your domain. In our run there were four records. The status says Waiting for DNS until they are found.
| Type | Name | What it does |
|---|---|---|
| TXT | _cf-custom-hostname.app | Shows that the domain is yours. |
| CNAME | app | Sends visitors to awx. Its value is customers.awanbox.com. |
| TXT | _acme-challenge.app (two records) | Let the padlock (the HTTPS certificate) be issued. |
Add them in your DNS dashboard. This is the whole DNS list of our test domain afterwards. Your records will have different values, so copy them from the card.
If your DNS runs through a service that can proxy traffic, set the CNAME to DNS only, so that visitors go straight to awx.
Step 3: wait, then check
The records have to spread across the internet, and then the certificate is issued. The card checks again by itself every 30 seconds, and Check now asks at once. First it says that it cannot find the records. Then it says The domain is checked; the padlock is being issued, and the ownership record leaves the list because it is no longer needed. In our run it took a few minutes after the last record was saved. When it is ready the status changes to Live. Until then, visitors see a plain "not found" page and nothing else.
Step 4: open your address
Go to https://app.qrlogo.org. The generator opens with a padlock, the same app that the awx link shows. Type a link, press Make QR, and download the PNG.
app.qrlogo.org. We typed https://awanbox.com and pressed Make QR.Like any other link, it works while the computer is awake, and it shows the app on the port you picked.
A landing page on the bare domain
You can use both kinds together. On our test domain, app.qrlogo.org is the generator, and the bare domain qrlogo.org is a small landing page with one button that leads to it. The landing page is a second small web server on the same computer, on its own port (8001 here, 8000 for the generator). You add it the same way: its own entry in the card, with the port of the page. To make www go to the bare domain as well, see www too.
qrlogo.org. Its button opens app.qrlogo.org.Good to know
- You keep your domain. It stays with your registrar. awx only receives visitors for the one subdomain you add.
- Remove it any time. Delete the records and the address stops working. When the awx link is removed, the domain is released too.
- It is public. Anyone who knows the address can open it, like a preview link. Do not put anything private on it.
- The old address still works. Your awanbox.com link stays as it is.
Keep reading
- How to build a student portfolio at yourname.awanbox.com
- How to put your bare domain on an awx link, for yourname.com itself
- A PHP and MySQL assignment with a public link
- A weather page from a JSON API
- How to send your lecturer a link to your Flask assignment
Getting started
Sign in with your Google account, give your name and confirm your email. New accounts are approved by hand, and you start on the Free plan. Build a page, make a link, and see Pricing for what the paid plan will include.
Awi, signing off.