httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <>
Subject Re: [users@httpd] Port-based vhosts
Date Wed, 11 Mar 2009 08:35:13 GMT
On Wed, Mar 11, 2009 at 4:35 AM, Charles Sprickman <> wrote:

>  What you need to do is check what's in the "Host" header, and if it
>> doesn't match the ServerName send a redirect.
>> RewriteEngine On
>> RewriteCond %{HTTP_HOST}   !^www\.foo\.com [NC]
>> RewriteCond %{HTTP_HOST}   !=""
>> RewriteRule ^/(.*)$1 [L,R=301]
> Excellent.  It may be a challenge for me to incorporate this into the
> search-engine-friendly rewrite rules that Joomla uses, but I'll give it a
> spin on a staging box and see what happens.
> What kind of performance impact, in general, do simple rewrites like this
> impose on a busy server?

In my experience the performance impact of a few simple rewrite rules is


Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

View raw message