Updated: 13 November 2026 · Applies to: DirectAdmin, tested with Apache 2.4 on Debian 13

Before a domain's DNS points to your server, you can still open its site through the server's IP address, using your username and a symlink. The address looks like http://SERVER-IP/~username/domain.com/, and it only works if the server has user directory access turned on.

Create the symlink

  1. Log in over SSH as the account user.
  2. Go to the account's public_html folder and create a link for each domain you want to preview:
cd /home/username/public_html
ln -s ../domains/domain1.com/public_html domain1.com
ln -s ../domains/domain2.com/public_html domain2.com

Tested on a lab Apache 2.4.69 server set up the same way: once the symlinks exist and the server's UserDir module is enabled and pointed at each account's public_html folder, a request for /~username/domain1.com/ served that domain's own files correctly, with no changes needed on the domain side.

If the address does not work

User directory access (the /~username/ part of the address) is a server-level setting, turned on by your host, not something every account can switch on itself. If the address gives a 404 or "not found" error instead of the site, ask whether user directory access is enabled for your account, or use the hosts file method below instead.

Also use plain http://, not https://, for this address. The domain's real SSL certificate does not cover the server's bare IP address, so a browser will warn about the certificate on https://SERVER-IP/~username/... even when the site itself is fine.

Tip: edit your computer's hosts file instead

For most people this is simpler and shows the site exactly as it will look once DNS is live, HTTPS included. Add a line to your computer's hosts file (not the server's) pairing the domain with the server's IP address, for example 203.0.113.10 domain1.com www.domain1.com, then browse to the domain normally. Remove the line again once DNS has switched over, or your computer will keep ignoring the live DNS record for that domain.

Once DNS for the domain is pointed at the server for real, see How to setup the DNS for a DirectAdmin web server.

Related services

Server management

on-demand administration, hardening, migrations and monitoring.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket