Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
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 www.somedomain.com 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/parking.ourserver.com.vhost:
Invalid command 'medomain.com', 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
The Following 2 Users Say Thank You to StrikerNL For This Useful Post:
falko (11th June 2009), till (10th June 2009)
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Segment Router Setup - Not forwarding Packets jkane1517 Server Operation 4 3rd August 2010 20:48
Put text from multiple lines onto one line? Mosquito Programming/Scripts 5 5th October 2007 16:46
Ispconfig and Virtuemart shajazzi Installation/Configuration 7 21st February 2006 21:25

All times are GMT +2. The time now is 20:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.