Can I have the shared IP Page on all IPs?

Discussion in 'Installation/Configuration' started by spidie, Jul 11, 2007.

  1. spidie

    spidie New Member

    Hi All

    My current server has 3 IP addresses. If I go to the hostname of the server I just get the sharedip page - which is fine, I never intend to put up any non-ispconfig sites on this server. If I also go to the primary IP of this server - I also get the page.... all good.

    *However* if I go to the hostnames of the other IPs or the IPs themselves I get a listing of /var/www which is a huge security hole as this exposes the home directories of all the users to the web.

    Is there any easy way to fix this? - I know I can change the default vhost to include the other IPs - but this gets overwritten everytime anything is changed. I also looked in /root/ispconfig/scripts/lib/config.lib.php and this just uses SERVERIP to configure this vhost. Shouldn't the other IPs in the IP List in the server settings page be used???

    Many Thanks in advance.
    Steve
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add all IP addresses to ISPConfig under management > server > settings, all IP addresses where used for the shared IP page where you created at least one website for.
     
  3. spidie

    spidie New Member

    Thanks. I had the IPs in there - but the key is to have at least 1 server on that IP for it to work. I presume it's something to do with reverse DNS perhaps?
     

Share This Page