vhost subfolder redirection not working in multiserver setup

Discussion in 'Installation/Configuration' started by damnseg, Apr 3, 2014.

  1. damnseg

    damnseg New Member

    so i got my multiserver setup with latest release of ispconfig3 on this machines:
    1 Ubuntu 12.04 -> master
    4 Debian 5.0 -> slaves
    4 Debian 4.0 -> slaves

    everything is working correctly, i can create websites, remote disks writing is ok, each mysql is synched and all.
    the issue is on vhosts subfolder redirection on slave servers. when i try to create domains/websites on remote servers i can only access the page under /var/www, but not the correct page in the domain link (like /var/www/testdomain.com/web).
    i change my dns locally to point at the right site.

    i think i checked everything, .vhost apache files paths are ok and debug is showing no errors, but still i can only see the index.html under /var/www and not the 'testdomain.com' index.html under /var/www/clients [..] /web
    this happens only on slaves, the mater is working correctly.

    thanks in advance
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the dns settings of the domains and ensure that the ip in dns matches the ip address that you used for the vhosts. If the server is behind a nat router, then you have to use the external IP in dns and the internal IP in the website vhosts.
  3. damnseg

    damnseg New Member

    I'm using a vpn tunnel to connect to the infrastructure, for now it's all internal.
    The DNS are ok, i can resolve the domain name correctly, since i changed my local host file for testing purposes.
    What concerns me is that i can see the master server sites, but i can only see the index.html under /var/www on the slave ones (when i try to connect to the sites created on the slave).
    All the vhosts apache files are created and configured correctly.

    Thanks again.

  4. damnseg

    damnseg New Member

    Ok, problem found.
    For other reasons, i compiled and installed an older version of apache, then i installed the packaged version for ispconfig, but the init.d script was not overwritten.
    So i had a broken script that didn't know about the vhosts files created by ispconfig.
    With the correct script it works fine.


Share This Page