Updated: 15 November 2026 · Applies to: DirectAdmin with Webalizer (Apache symlink behaviour tested on Apache 2.4)
DirectAdmin writes each domain's Webalizer statistics to a stats folder next to public_html, which is not reachable from the web. To view them in a browser without logging in to DirectAdmin, create a symbolic link inside public_html that points to that folder, then protect it with a password.
Where the stats are
According to DirectAdmin, Webalizer is the default statistics program and writes its HTML reports to:
/home/USERNAME/domains/example.com/stats
The website itself is served from /home/USERNAME/domains/example.com/public_html, so the stats sit one level above the web root.
Create the link over SSH
- Log in over SSH as the account user, not as root (the link must belong to the same user as the stats folder, see below).
- Go to the website folder. Replace
USERNAMEandexample.comwith your own.
cd /home/USERNAME/domains/example.com/public_html
- Create a link called
webstatsthat points to the stats folder:
ln -s ../stats webstats
- Open
https://example.com/webstats/in your browser.
According to DirectAdmin, the domain's statistics page in the panel can also create this ../stats link for you. If the server uses AWStats instead of Webalizer, the link points to ../awstats.
If you get 403 Forbidden
Apache often allows symbolic links only when the link and its target have the same owner (SymLinksIfOwnerMatch). In our test, a link owned by the account user loaded normally, while the same link owned by root returned 403 with this line in the error log:
AH00037: Symbolic link not allowed or link target not accessible
Fix it by removing the link and creating it again as the account user, not as root. You can check the owner with:
ls -l webstats
Protect the folder
Once linked, anyone who knows the address can read your statistics, including visitor IP addresses and the pages and files people requested. Add a password:
- In DirectAdmin, open Password Protected Directories.
- Choose the
public_html/webstatsfolder, turn protection on, and add a username and password. - Open the address again in a private browser window to confirm it now asks for a login.
Remove public access
Delete the link from public_html. This removes only the link; the stats folder and its reports stay where they are.
rm webstats
Good to know
- Stats are rebuilt when DirectAdmin runs its regular tally, so today's visits may not show yet.
- To change what Webalizer shows, see How to customize the output of webalizer in DirectAdmin?. For the raw access logs, see DirectAdmin Locations of Logs.
Official documentation: DirectAdmin, website statistics.