Websites
A website in WasFor is a domain, a document root and a runtime profile. The site screen is the control centre for everything that belongs to that domain.
Create a site
- Websites → Create site.
- Enter the primary domain, without
https://or a trailing slash. - Pick a document root. The default
/home/<account>/sites/<domain>keeps sites isolated per account. - Choose the PHP version. Use the same major version your framework supports.
- Optionally enable the built-in placeholder page.
The panel generates the vhost, creates the directory tree, assigns ownership and reloads the web server without dropping existing connections.
Site tabs
| Tab | Contents |
|---|---|
| Overview | Status, document root, PHP version, disk and traffic |
| Domains | Primary domain, aliases, redirects |
| Database | Databases attached to the site |
| SSL | Certificate status, issuance, force HTTPS |
| Settings | PHP overrides, caching, rewrite rules, security |
| Deploy | Git integration, post-deploy commands, releases |
| Traffic | Requests, bandwidth, status codes, top paths |
Aliases and redirects
An alias serves the same site on another hostname:
www.example.com → alias of example.com
example.net → alias of example.comA redirect sends one hostname to another with a status code:
old.example.com → https://example.com 301Use 301 for permanent moves and 302 for temporary campaigns. Redirects are evaluated before the application receives the request.
Document root and rewrites
The document root must live inside the account home directory. Point it at a framework's public/ directory rather than the repository root:
/home/acme/sites/app.example.com/current/publicFor single-page applications or frameworks without physical files, enable the front-controller rewrite:
location / {
try_files $uri $uri/ /index.php?$query_string;
}The panel exposes this as a preset under Settings → Rewrite. Custom rules are appended after the preset and are validated before reload.
Deployment
The Deploy tab connects a site to a Git repository.
| Field | Example | Notes |
|---|---|---|
| Repository | git@github.com:acme/app.git | HTTPS or SSH |
| Branch | main | Deploy on push or manually |
| Release path | releases/<timestamp> | Atomic symlink switch |
| Post-deploy | composer install --no-dev | Runs as the site user |
Each deployment creates an immutable release directory and flips a current symlink. A failed post-deploy hook leaves the previous release serving traffic.
# What the deployer runs
cd /home/acme/sites/app.example.com/releases/20261201-031500
composer install --no-dev --optimize-autoloader
php artisan migrate --force
ln -sfn releases/20261201-031500 currentTraffic and logs
The Traffic tab shows requests, bandwidth, status-code distribution and the busiest paths for the selected range. Raw logs are available per site:
tail -f /home/acme/sites/app.example.com/logs/access.log
tail -f /home/acme/sites/app.example.com/logs/error.logLogs rotate daily and are compressed after seven days. Keep the retention your compliance rules require; increase it under Account → Log retention.
Maintenance mode
Enable maintenance mode before migrations or restructures. The panel serves a 503 page with Retry-After while allowing your IP through:
Maintenance: on
Allowed IPs: 203.0.113.10Delete a site
Deleting a site removes the vhost and, optionally, the files and databases. The confirmation dialog lists exactly what will be deleted. Backups of the site are retained until their normal expiry unless you choose to purge them too.