I have 2 domains but always pointing document root to one folder only

Discussion in 'General' started by JULINT, Jan 2, 2021.

  1. JULINT

    JULINT Member

    Please help me to solve this:
    I have 2 domains :
    - mariberasuransi.co.id ( set options apache directive DocumentRoot "{DOCROOT}/public"
    doc root : /var/www/clients/client1/web1/web/public
    - gcs.co.id
    doc root : /var/www/clients/client1/web2/web/index.html

    I do not know why mariberasuransi.co.id always pointing to /var/www/clients/client1/web2/web/index.html also..
     
  2. JULINT

    JULINT Member

    Another issue :
    i have created phpinfo.php on /var/www/clients/client1/web2/web
    i got 503 service unavailable on browser
     
  3. JULINT

    JULINT Member

    I have fixed it by change domain PHP FastCGI , each domain works.
    But when i choose PHP FPM , both domain got error ..
    what is the problem ?
     
  4. JULINT

    JULINT Member

    Any idea about error message below ?

    [Sat Jan 02 21:19:57.200603 2021] [proxy:error] [pid 7560] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/lib/php7.2-fpm/web2.sock (*) failed
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

Share This Page