demo.jcorelabs.dev
This page is designed to be readable by humans and AI agents.
Purpose: Use this page as a reference to create a new working subdomain.
AI Summary (Plain Text)
Project: jcorelabs local web layout
Rule: each directory in /home/lkongo/web/domains maps to <dir>.jcorelabs.dev.
This host: demo.jcorelabs.dev serves static content from /home/lkongo/web/domains/demo.
Create new: run /home/lkongo/web/system/scripts/new-subdomain.sh <name>.
Create A Working Domain
- Pick a valid name: lowercase letters, digits, hyphen.
- Run
/home/lkongo/web/system/scripts/new-subdomain.sh <name>. - Wait for script success (nginx test + user service start).
- Verify with
curl -I https://<name>.jcorelabs.dev.
AI Task Template
# Input
NAME="example"
# Create subdomain and static page
/home/lkongo/web/system/scripts/new-subdomain.sh "$NAME"
# Validate local nginx routing
curl -I "http://127.0.0.1:18080/" -H "Host: ${NAME}.jcorelabs.dev"
# Validate public domain
curl -I "https://${NAME}.jcorelabs.dev"
# Read page (AI/curl friendly)
curl -s "https://${NAME}.jcorelabs.dev" | sed -n '1,160p'
Collision Behavior
Port is deterministic: 20000 + (crc32(name) % 20000).
If a collision is detected with another subdomain, script exits with warning and no fallback.
Machine-Readable Hints
Canonical URL: https://demo.jcorelabs.dev
Content type: text/html; charset=utf-8
Primary topic: create working subdomains via script + verify with curl