Results 1 to 2 of 2

Thread: change all new and old subdomains path

  1. #1
    Join Date
    Feb 2018
    Posts
    12

    change all new and old subdomains path

    hello,
    I went to change all subdomains path from:
    ... / domains / domain / public_html / sub
    to
    ... / domains / domain / sub
    ----------------------------------------
    I follow this toutrial
    https://help.directadmin.com/item.php?id=2

    and in virtual_host2_secure_sub.conf path to
    |?CGI=ScriptAlias /cgi-bin/ `HOME`/domains/`DOMAIN`/`SUB`/cgi-bin/|
    |?DOCROOT=`HOME`/domains/`DOMAIN`|
    |?REALDOCROOT=`HOME`/domains/`DOMAIN`|

    in virtual_host2_secure_sub.conf

    |?DOCROOT=`HOME`/domains/`DOMAIN`|
    |?REALDOCROOT=`HOME`/domains/`DOMAIN`|

    -------------------------------------

    the new paths is working goodbut when I create any new sub-domain DA create it in public_html and I should move it manually out of public_html to allow new usb-domain to be work ..

    how I can solve this problem
    thanks ..

  2. #2
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    6,749
    You need to use a custom script where you do the needed tasks, this guide may help you a bit: https://help.directadmin.com/item.php?id=187
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •