Skip to content
WasFor
Back to home
Documentation/User panel

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

  1. Websites → Create site.
  2. Enter the primary domain, without https:// or a trailing slash.
  3. Pick a document root. The default /home/<account>/sites/<domain> keeps sites isolated per account.
  4. Choose the PHP version. Use the same major version your framework supports.
  5. 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

TabContents
OverviewStatus, document root, PHP version, disk and traffic
DomainsPrimary domain, aliases, redirects
DatabaseDatabases attached to the site
SSLCertificate status, issuance, force HTTPS
SettingsPHP overrides, caching, rewrite rules, security
DeployGit integration, post-deploy commands, releases
TrafficRequests, bandwidth, status codes, top paths

Aliases and redirects

An alias serves the same site on another hostname:

text
www.example.com   →  alias of example.com
example.net       →  alias of example.com

A redirect sends one hostname to another with a status code:

text
old.example.com   →  https://example.com  301

Use 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:

text
/home/acme/sites/app.example.com/current/public

For single-page applications or frameworks without physical files, enable the front-controller rewrite:

nginx
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.

FieldExampleNotes
Repositorygit@github.com:acme/app.gitHTTPS or SSH
BranchmainDeploy on push or manually
Release pathreleases/<timestamp>Atomic symlink switch
Post-deploycomposer install --no-devRuns 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.

bash
# 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 current

Traffic 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:

bash
tail -f /home/acme/sites/app.example.com/logs/access.log
tail -f /home/acme/sites/app.example.com/logs/error.log

Logs 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:

text
Maintenance: on
Allowed IPs: 203.0.113.10

Delete 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.

Last updated: 2026-12-01