I followed the CBAND tutorial and with some personal modifications it works perfectly for HTTP websites. BUT not with HTTPS with SSL! Somehow ispconfig uses a different config file than vhost.conf.master, because the HTTP_INCLUDE, which I moved after the variable "ServerName", is ABOVE the variable in the HTTPS section??? Cband errors when starting Apache 2 is the result. (undefined virtual hostname) So who knows how to solve this ?
Solution Found Oke, this was a quicky. I found the solution. The SSL/HTTPS configuration isn't in vhost.conf.master but in config.lib.php. (/root/ispconfig/scripts/lib/config.lib.php) Go to rule 1514 "//SSL-Web schreiben" Here are the variables for creating the SSL website. Place HTTP_INCLUDES ".$web_httpd_include." below ServerName "ServerName ".$servername."".$ssl_port."", so that the bandwidth module Cband works correctly. It may look somthing like this. ".$suexec." ServerName ".$servername."".$ssl_port." ServerAdmin webmaster@".$web["web_domain"]." DocumentRoot ".$document_root." ".$serveralias." ".$directory_index." ".$web_httpd_include." ".$cgi." After this, just change a little setting (like the ip address) in the website and change it back to the original setting. Now I only have to figure out how I can disable HTTP when HTTPS is enabled. I think I'm gonna use something like mod_rewrite. Greets, Remon
These links might help you: http://www.howtoforge.com/forums/showthread.php?t=6048&highlight=http+https+rewrite http://www.howtoforge.com/forums/showthread.php?t=9630&highlight=http+https+rewrite http://httpd.apache.org/docs/2.0/misc/rewriteguide.html