Subdomain as vhost : symlink bug ?

Discussion in 'Installation/Configuration' started by COLVIT, Jan 21, 2026.

  1. COLVIT

    COLVIT New Member

    Hi,

    when i add a subdomain as vhost, i get a symlink :
    Code:
    sub.domain.tld -> /var/www/clients/client4/web23/
    
    and a folder with desired name in
    Code:
    /var/www/clients/client4/web23/
    
    looking like this :
    Code:
    ls -la web23/
    total 48
    drwxr-xr-x 12 root  root    4096 Jan 21 19:25 .
    drwxr-xr-x  3 root  root    4096 Jan 21 19:25 ..
    drwxr-xr-x  2 web23 client4 4096 Jan 21 19:22 backup
    drwxr-xr-x  2 web23 client4 4096 Jan 21 19:22 cgi-bin
    drwxr-x---  2 web23 client4 4096 Jan 21 19:22 .composer
    drwxr-xr-x  4 root  root    4096 Jan 21 19:25 log
    drwx--x---  4 web23 client4 4096 Jan 21 19:25 sub.domain.tld
    drwx--x---  2 web23 client4 4096 Jan 21 19:22 private
    drwx------  2 web23 client4 4096 Jan 21 19:22 .ssh
    drwxr-xr-x  2 root  root    4096 Jan 21 19:22 ssl
    drwxrwx---  2 web23 client4 4096 Jan 21 19:22 tmp
    drwx--x---  3 web23 client4 4096 Jan 21 19:22 web
    
    inside the folder sub.domain.tld, there are the files needed to serve the subdomain :
    Code:
    ls -la web23/sub.domain.tld/
    total 32
    drwx--x---  4 web23 client4 4096 Jan 21 19:25 .
    drwxr-xr-x 12 root  root    4096 Jan 21 19:25 ..
    drwxr-xr-x  2 web23 client4 4096 Jan 21 19:25 error
    -rwxr-xr--  1 web23 client4 7358 Jan 21 19:25 favicon.ico
    -rwxr-xr--  1 web23 client4   14 Jan 21 19:25 robots.txt
    -rwxr-xr--  1 web23 client4 1862 Jan 21 19:25 standard_index.html
    drwxr-xr-x  2 web23 client4 4096 Jan 21 19:25 stats
    
    I think the symlink is supposed to point directly inside the sub.domain.tld ? Because if not, the path look like this :
    Code:
    /var/www/clients/client4/sub.domain.tld/sub.domain.tld/
    
    Am i wrong ?
     

Share This Page