ServerAlias line too long - Bug? Feature?

Discussion in 'Developers' Forum' started by concept, Sep 16, 2008.

  1. concept

    concept New Member

    Hello Folks,

    i am using ispconfig for about 18 Month now. but now i am running into a big ( ? ) problem...

    Currently, i am migrating an old Suse 9.3/Confixx environment to a new Ubuntu 8.04/ISPConfig system. After inserting all domains from the old system, apache2 stops working, complaning of something wrong with the Vhosts_ispconfig.conf-file.

    After doing some tests i could track down the prolem. ISPConfig puts all domains/codomains from one web into one ServerAlias directive. this confuses apache on my system, because the serveralias-line became at least around 18.000 chars long (yes, eighteen thousand).

    After some googling i put ISPConfig down, and edited the Vhosts_ispconfig.conf manually, splitting up the ServerAlias-Line into several shorter ServerAlias-Lines, each around 1000 Chars long.

    Now, Apache2 is happy, and i am too! :) nearly....

    Of Course if i restart ISP-Config, and change something, the Vhosts-file is rewritten, and the Problem reappears.

    Is there any Konfiguration-Option or Patch (or Tweak) i can use to solve/avoid the Problem?

    any help would be appreciated

    concept
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You'd have to modify the make_vhost() function in /root/ispconfig/scripts/lib/config.lib.php.
     
  3. concept

    concept New Member

  4. falko

    falko Super Moderator ISPConfig Developer

    I've just fixed this in SVN, but I've used my own code because I've seen your solution just now...
     

Share This Page