Multi Webservers

Discussion in 'Installation/Configuration' started by Darrell Gowland, Sep 11, 2019.

  1. Darrell Gowland

    Darrell Gowland New Member

    I am using ubuntu 18.04 and installed 4 webservers using the auto installation script. (standard 1st server, expert servers 2,3 and 4)
    From the ISPConfig Control Panel I can see all 4 servers. I can create websites on server 1 and all is fine.
    When I create websites on any of the other servers I get the standard apache index page not the ispconfig index page
    When I look on the other servers /var/www I see the correct files.
    When I try to create an FTP account I can see server 1 all okay but the other servers 503 errors.
    Is there any additional configuration required?
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Darrell Gowland

    Darrell Gowland New Member

    The host file is correct
    Has all the domain names added into each server.
    If I create a website on server1 and ftp all works fine.
    When I create a website on any other server it creates all the files and web space on the server as I can see them when I access the server through SHH terminal but when you click on the link it goes to a standard apache page.

    In the local environment I have
    ispconfig1.xxxxxxx.co.uk 192.168.60.231 - All Web and FTP services work
    ispconfig2.xxxxxxx.co.uk 192.168.60.232 - No web or ftp working
    ispconfig3.xxxxxxx.co.uk 192.168.60.233 "
    ispconfig4.xxxxxxx.co.uk 192.168.60.234 "

    The dashboard on ispconfig1 can see all the servers, I can monitor all the servers, it creates the webspace as I can see this on ispconfig2 (/var/www).

    I am using a single static public facing IP that all goes to 192.168.0.231
    I thought that the ISPCONFIG would pass through to the other servers. Is there any more additional setup required.
    On each server when I ping the FQDN I get the correct local IP (192.168.50.xxx)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then that's your problem and not an issue with the ISPConfig setup, you must assign a public IP to each of your servers if you want to access sites on them externally. If you have just obe IP then must set up a proxy server or load-balancing soft- or hardware in your network if you want to redirect traffic by domain name to different web servers inside your local network.
     
  5. Darrell Gowland

    Darrell Gowland New Member

    I thought that you could have multiple web servers with ISPConfig.
    I thought the master sends the data to the other servers ?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Sure, you can have thousands of web server nodes managed by one ISPConfig master and your setup is working exactly as one would expect. The failure you made is that you missed assigning external IP addresses to the other servers. If you want to access a service or server behind a NAT router, then you must have an external IP address that is routed to the internal Ip of the server that you want to reach. This is not ispconfig specific btw, it applies to all kinds of web servers, no matter which control panel you use.

    No, why should he do that? The master is the node that manages your server. It's not a network router or proxy.
     
  7. Darrell Gowland

    Darrell Gowland New Member

    Thanks for your help. I understand that each web servers required a separate IP. I thought that IPConfig created a reverse proxy automatically on the apache server to pass through the data to the other servers. I thought I missed a step.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPconfig is made for hosting providers and data centers, so it assumes that each node is accessible from the internet through a public IP. Routing all traffic through a master node where you setup a proxy might work if you have a small setup (you can do that in ispconfig, just setup a website on the master and configure it to proxy its traffic to the slave that hosts the target site), but in larger-scale installations the master would simply be overloaded if it should handle the traffic of hundreds of servers.
     
  9. Darrell Gowland

    Darrell Gowland New Member

    I have added this to the options tab of the website:

    ServerName devbox2.swindonwebdev.co.uk
    ProxyPreserveHost On
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass / http://192.168.50.234/
    ProxyPassReverse / http://192.168.50.234/

    I am new to this and a liitle help/guidence would be appreciated
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    you added this on a second website which is on the master, right? if not, add a second website with same domain on the master and add the code there.
     

Share This Page