View Single Post
Old 10th June 2009, 10:19
StrikerNL StrikerNL is offline
Join Date: Feb 2009
Posts: 45
Thanks: 9
Thanked 10 Times in 8 Posts
Default Split ServerAlias on multiple lines if >8192 bytes

We have one domain on our ISPConfig (+ubuntu 8.10) server with a 'large' amount of parked domains that are linked to it as an aliasdomain.

There seems to be a problem with the way ISPConfig handles this though. It simply keeps adding the aliasdomains onto the 'ServerAlias' directive. However, as it turns out, such a line, including the directive itself, can only be a maximum of 8192 bytes.

When these 8192 bytes are exceeded, apache simply assumes a new line starts there, and something to this effect happens when starting apache (let's assume is the domain on the 8192 byte boundary):

root@ispconfig:~# /etc/init.d/apache2 start
 * Starting web server apache2
Syntax error on line 12 of /etc/apache2/sites-enabled/
Invalid command '', perhaps misspelled or defined by a module not included in the server configuration
This can easily be solved by checking if such a line exceeds 8192 bytes, and if so, adding an additional ServerAlias directive.

The problem is that when this occurs, the entire apache server fails to start, causing ALL websites on the server to be unreachable.

Last edited by StrikerNL; 10th June 2009 at 13:48.
Reply With Quote
Sponsored Links