ISPConfig Change doc root

Discussion in 'Installation/Configuration' started by JULINT, Jan 28, 2021.

  1. JULINT

    JULINT Member

    I have installed ispconfig successfully, and i need to change doc root .
    1. I have change doc root on /etc/apache2/domain.com.vhost
    on this line :
    DocumentRoot /var/www/clients/client1/web6/web/public
    i have changed it to /web/public , and public as doc root
    2. i run service apache2 restart.

    But it is not working..
    Please help me or guide me step by step how to do it.
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Never change the vhosts manually, changes will be overwritten.

    Use the apache directives in the options tab of that web instead.
     
  3. JULINT

    JULINT Member

    Hi Thom,

    I have set apache directive to {DOCROOT}/public .. but it is not working.

    Any documentation about set apache directive ?
     

    Attached Files:

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Use {DOCROOT_CLIENT}
     
  5. JULINT

    JULINT Member

    I have set it using {DOCROOT_CLIENT}/public .. but
    eg.. abc.php on {DOCROOT_CLIENT}/public/abc.php .. got

    This page isn’t working
    domain.com redirected you too many times.

    on abc.php , it only echo 'a';

    Please help me.
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Can you share the exact content of the directives?
     
  7. JULINT

    JULINT Member

    Hi Thom,
    I have attached apache directive content
     

    Attached Files:

  8. JULINT

    JULINT Member

    Hi Thom,
    I have solved it. it was something wrong on .htaccess
     
  9. JULINT

    JULINT Member

    After changed this doc root success.. i am trying to install SSL..
    i have got certificate and ca bundle, and save it on ssl tab on my domain.
    But it does not work..
     

    Attached Files:

  10. JULINT

    JULINT Member

    I have checked on this url https://decoder.link/sslchecker/sohos.id/443
    and i got :
    443 port seems to be closed, check your firewall/server configuration.
     
  11. JULINT

    JULINT Member

  12. JULINT

    JULINT Member

    Hi Till,
    After changed this doc root success.. i am trying to install SSL..
    i have got certificate and ca bundle, and save it on ssl tab on my domain.
    But it does not work..

    Any idea how to check what is going wrong ?
     

    Attached Files:

  13. till

    till Super Moderator Staff Member ISPConfig Developer

    1) Ensure that you enabled the "SSL" checkbox in the website settings.
    2) take care to select 'Save certificate' in the action field on the ssl tab before pressing save.

    That's described in detail in the ISPConfig Manual btw.
     
  14. JULINT

    JULINT Member

    Hi Till,
    Thanks for your response..
    1) It has been set
    2) I have click save certicate , when copying content of .crt and .ca-bundle

    But it is not working..
     

    Attached Files:

  15. JULINT

    JULINT Member

    The browser always got : ( https://sohos.id )

    This site can’t be reached
    sohos.id unexpectedly closed the connection.
     
  16. JULINT

    JULINT Member

    I have followed tutorial on youtube and searching step by step installing ssl in ispconfig..
    But it was failed.

    Please help me..
     
  17. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Please go to the SSL tab, and select "Delete certificate" for the SSL action. Then fill in the details again and select "Save certificate" as action. Make you sure you have the correct data.
     
  18. JULINT

    JULINT Member

    Hi Thom,

    I have delete certificate, create csr again.. and reissue ssl ..
    but SSL is still not working
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    is the vhsot file of this sites saved with .err file extension in the /etc/apache2/sites-available/ folder?
     
  20. JULINT

    JULINT Member

    hi Till,
    Yes .. it is on the same folder .
    I have saved as its extension to .txt
     

    Attached Files:

Share This Page