Static IPs and IP based sites

Discussion in 'Installation/Configuration' started by ajw_doc, Jun 17, 2008.

  1. ajw_doc

    ajw_doc New Member

    Hi,

    I see ispconfig kinda supports static ips but was wondering if there was something I can change to let it do it properly.

    I can manually edit /etc/httpd/conf/vshost/Vshosts_ispconfig.conf and edit the file:

    How it is setup

    Code:
    NameVirtualHost 12.345.678.90:80
    <VirtualHost 12.345.678.90:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /var/www/sharedip
    </VirtualHost>
    
    my change

    Code:
    NameVirtualHost 12.345.678.90:80
    <VirtualHost 12.345.678.90:80>
      ServerName localhost
      ServerAdmin root@localhost
      DocumentRoot /path/to/domainwanted
    </VirtualHost>
    
    No this obviously gets overwritten when any dns changed are made in the admin panel.

    It seems a little odd that you can add multiple ips, set a site to one ip but not allow it to have proper IP based support. There must be a way to edit the file that makes the change to Vshosts ? Maybe not.

    If not is there going to be support for it?

    Thanks,

    doc
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig does not support IP based virtual hosts.
     
  3. ajw_doc

    ajw_doc New Member

    Wow that's a helpful reply.

    I'm aware it doesn't support it fully at the moment. It does to an extent otherwise it wouldn't be able to support SSL certs.

    My question was is there a way to hack around in the file that submits that change? Can someone tell me which file it is.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Not really. The SSL sites are also just name based vhosts. The only difference is that apache acts like a IP based vhost for ssl sites when there is no default vhost for this IP.

    /root/ispconfig/scripts/lib/config.lib.php
     

Share This Page