Hi all,
I follow this guide:
http://www.howtoforge.com/nginx-catc...n-debian-lenny
All is working perfectly for all customers who own a subdomain like user.my-domain.com but for those owning their own domain name, they are redirected to their-domain.com and
www.their-domain.com don't work anymore, not fully, the files like .css and .js aren't found (nginx's logs showing that nginx try to find
/var/www/www.domain.com instead of
/var/www/domain.com).
I think it is because this Nginx directive:
Code:
#### www. redirect - all domains starting with www will be redirected to http://domain. ####
if ($host ~* ^(www\.)(.+)) {
set $rawdomain $2;
rewrite ^/(.*)$ http://$rawdomain/$1 permanent;
}
In fact, I don't understand the presence of it...
Any idea?
Regards,
Recent comments
1 day 5 hours ago
1 day 14 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
1 day 21 hours ago
1 day 23 hours ago
2 days 36 min ago
2 days 16 hours ago
2 days 17 hours ago