diff --git a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
index 965d422..93ca31e 100755
--- a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
+++ b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
@@ -381,7 +381,7 @@ __post_execute() {
url="$(<"$host")"
echo "$name: $url"
echo ''$name'
' >>"$WWW_ROOT_DIR/hostnames.html"
- touch "/run/tor/sites/$name"
+ touch "/run/tor/sites/${url//.onion/}"
done
echo "End current hidden services"
fi