Apache2 shows error message "undefined virtualhost name" after enabling and configuring mod_cband

2006-12-23 01:26:00 by Saz

After setting up mod_cband, I've tried to restart Apache2. Apache is restarting, but is displaying a message like the following one:

[Sat Dec 23 00:38:01 2006] [warn] Invalid command 'CBandLimit', undefined virtualhost name

Some searching through the internet brought up a solution for my problem.

In my virtual-host configuration I've added the mod_cband-specific entries at the top. And that's my mistake. Every directive specific to mod_cband must be added after the ServerName-directive. As you might realized, if you want to use mod_cband, you have to add the ServerName-directive to your virtual-host configuration.

HTH.


Comments

Fork me on GitHub