Subdomain showing default Page

Discussion in 'General' started by Shamuga, Dec 7, 2025.

  1. Shamuga

    Shamuga New Member

    Hello, i am trying to create subdomain as different web site.

    I enabled "Create subdomains as web site" from setting (admin panel)

    Add subdomain(vhost) :
    upload_2025-12-7_20-39-20.png


    Added index.php in path (/var/www/clients/client1/web2/web/lp/hfm) :

    Content inside index.php => "Hello World"

    When i tried to open subdomain url it showing default page :

    upload_2025-12-7_20-41-6.png

    When i checked /var/www/clients/client1/web2/web/lp/hfm :

    There is only index.php which i created and there is no index.html default file.

    upload_2025-12-7_20-44-58.png

    Help me how to fix?
     
  2. Shamuga

    Shamuga New Member

    I got the solution myself.

    The correct path is /web/lp/hfm instead of /lp/hfm
     
    till likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The folder / is the web root, e.g. /var/www/client0/web1. So if you use /lp/hfm, then the folder is /var/www/client0/web1/lp/hfm. So if you want to have it inside of the document root of the main website, which is the /web folder, you must indeed use /web/lp/hfm as folder.
     
    ahrasis likes this.

Share This Page