[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Has recent apache2 upgrade screwed something



On 08/23/2007 04:03 PM, Alan Chandler wrote:
[...]
<VirtualHost  home.chandlerfamily.org.uk:80 >

        Include /etc/apache2/sites-available/www-common
        RewriteRule ^/$ /blog/app       [PT]
</VirtualHost>
[...]

I still get HTTP response "400 No Host matches server name www.chandlerfamily.org.uk."

If home.chandlerfamily.org.uk doesn't have the same IP address as www.chandlerfamily.org.uk, it won't work.

I advise you to rewrite the entire virtual host section. First read the Apache manual on virtual hosting. Don't try to use the Include directive until you have virtual hosting working without it.

Try this:

<VirtualHost home.chandlerfamily.org.uk>
  ServerName www.chandlerfamily.org.uk
  DocumentRoot /var/www/chandlerfamily
  RewriteEngine   on
  ...
</VirtualHost>





Reply to: