Ispconfig : how to create autosubdomain

Discussion in 'Installation/Configuration' started by JULINT, Oct 24, 2021.

  1. JULINT

    JULINT Member

    Hi,
    I want to make:
    user1.abc.com
    user2.abc.com
    pointing to /var/www/clients/client1/web/
    I have set auto-subdomain to *. on domain management

    But it failed.

    Please help how to do it
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Did you set your abc.com dns server to point *.abc.com to your server?
     
  3. JULINT

    JULINT Member

    Hi Ahrasis,
    I have set my dns pointing to ns1.abc.com and ns2.abc.com
    Do you mean i need to set it from A record of abc.com ?
     
  4. JULINT

    JULINT Member

    Maybe i need to edit directly on httpd-vhosts.conf like below :
    But i do not know where is httpd-vhosts located.

    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/path_to_XAMPP/htdocs"
    ServerName abc.com
    ServerAlias *.abc.com
    # SetEnv APP_ENVIRONMENT development
    # ErrorLog "logs/example.local-error_log"
    # CustomLog "logs/example.local-access_log" common
    </VirtualHost>
     
  5. JULINT

    JULINT Member

    Hi Ahrasis,
    Thanks for reminding me about dns.. Now it works.
     
    Th0m likes this.

Share This Page