Change address of Ispconfig server and vhots

Discussion in 'Server Operation' started by cremos, Apr 26, 2022.

  1. cremos

    cremos Member

    Hello everyone,
    I need to modify the address of my Ispconfig server.
    So I changed:
    1/ Server IP address
    2/ The Hosts file
    3/ The interface vhost file /etc/apache2/sites-enabled/000-ispconfig.vhost
    4/ Server address in Main menu > System > and Server configuration and server Ip address.
    How to modify all the vhosts (VirtualHost IP) without going through the interface sites > websites and this for each hosted site.
    thank you in advance for your feedback and congratulations for all the work done.
    Crémos
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Perhaps this belongs to ISPConfig forum?
    Is your question about the website "IPv4-Address:" field? I always enter * there, so changing IP of server does not matter. If you have written IP-address there, then I believe either change them in ISPConfig panel one by one or change those values in database using SQL commands. Note that all websites should have * there or all website should have IP-address, not a mix of the two.
     
    ahrasis likes this.
  3. cremos

    cremos Member

    Hello,
    In my case, all websites vhosts have Ispconfig's IP address.
    I also resynchronized the websites in the main menu > System > resync without result, we still have the old IP address.
    Extract from the vhost file for a site:
    100-marie-curie-nogent-sur-oise.ac-amiens.fr.vhost
    Code:
    <VirtualHost 192.168.236.50:80>
    DocumentRoot /var/www/clients/client8/web84/web
    ServerName marie-curie-nogent-sur-oise.ac-amiens.f
    ServerAlias marie-curie-nogent-sur-oise.ac-amiens.fr
    ServerAdmin [email protected]
    </VirtualHost>
    <VirtualHost 192.168.236.50:443>
    
    Crémos
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    @Taleman has explained what you have to do before doing the resync:

     
  5. cremos

    cremos Member

    Thank you for your feedback and responsiveness.
    Crémos
     

Share This Page