[Zope] VirtualHostMonster and "unpack list of wrong size"

Jo Meder jo@meder.de
Wed, 23 Oct 2002 23:26:09 +0200


Am 23.10.2002, 20:23 Uhr
	schrub Dieter Maurer <dieter@handshake.de>:

>   Some HTTP clients include the port in the "HOST" HTTP header.
> 
> Use an Apache "RewriteCond" to strip away the port if it is present:
> 
>     RewriteCond  %{HTTP_HOST}  ([^:]*)(:.*)?
>     RewriteRule ..../http/%1:80/...

Looks good, thanks a lot.

So far I've learned that Apaches rewrite-machinery is rather expensive
(in CPU cycles) and my small patch to the VirtualHostMonster is
comparably cheap. Are there circumstances where throwing away extra port
parameters inside the VHM will cause trouble?

	Jo.


-- 
Internetmanufaktur Jo Meder ---------------------- Berlin, Germany
http://www.meder.de/ ------------------- fon: ++49-30-417 17 63 33
Kollwitzstr. 75 ------------------------ fax: ++49-30-417 17 63 45
10435 Berlin --------------------------- mob: ++49-170- 2 98 89 97
Public GnuPG-Key ---------- http://www.meder.de/keys/jo-pubkey.txt