Search squid archive

Re: Squid breaks Apache mod_rewrite for canonical hostnames

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

 



mån 2007-04-30 klockan 19:34 -0700 skrev badaboom003-asdf@xxxxxxxxx:
> I'm running an Ubuntu LAMP server with standard
> configuration. I have the following lines in my
> .htaccess file for mod_rewrite (domain name changed):
> 
> Options Includes ExecCGI +Indexes +FollowSymLinks
> RewriteEngine On
> RewriteCond %{HTTP_HOST} ^mysite\.com [NC]
> RewriteRule ^(.*) http://www.mysite.com/$1 [R=301,L]
> 
> It works just fine.

This configuration is sensitive on the domain name, redirecting the user
to www if no www was specified.

> http_port xxx.xxx.xxx.xxx:80
> defaultsite=www.mysite.com

And this is not.. only supporting the single www domain. To support
domain-based virtual hosting you need the vhost directive in addition.

Regards
Henrik

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux