IP Aliases & Vhosts

Discussion in 'Installation/Configuration' started by can2002, Jul 17, 2007.

  1. can2002

    can2002 New Member

    I installed ISPConfig on an Ubuntu box following the perfect setup guide.

    It's worked a treat so far with several virtual hosts configured on a single IP address. I've recently been allocated an extra subnet for the server in question so I added the aliases through /etc/networking/interfaces.

    After adding the extra addresses into the ISPConfig server settings dialogue, I'm able to allocate them to the server and assign them to sites as expected.

    The one undesirable side-effect is that until I actually assign the addresses to one of my sites, I'm able to browse the folder structure of /var/www - including all of my PHP files (with mysql credentials, etc.), which is a worry. As a solution for now I've removed all bar one of the additional addresses and then assigned a dummy site to one remaining address. I now receive the usual vhost warning page if I try try to browse directly to the IP address; however I wondered if there was a more elegant way of avoiding the problem?

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Another way might be to enable the automatic IP configuration in ISPConfig and then add only the IP's in ISPConfig under management > server > settings that you actually use. ISPConfig will configure your network settings for you then.

    But I added this to the bugtracker as it might be usefull that all IP addresses listed in management > server > settings are defined in the apache configuration and not only when they are assigned as website.
  3. can2002

    can2002 New Member

    Hi Till,

    Thanks for your help.

    In the end I decided to stick with the dummy site option and created a bunch and assigned them to each of the addresses in turn. I created the new sites under the main administror account to avoid clutter.

    I agree it would be useful that an automatic to 'reserve' added IP addresses would be useful though:)


Share This Page