On Wed, Feb 16, 2011 at 10:39 AM, Raja Mahalingam <[email protected]> wrote:
> Repost with full details :
>
> configured nginx to serves namebased vHOST for wordpress blog for multiple
> domains by using
>
> server_name  _    (catches request for all domain request )
>
> For Example Domain :abc.com   ---> get served from
> /var/www/nginx/abc.comfolder
>
> For www.abc.com  it tries to search for /var/www/www.abc.com folder and
> produces error input file not specified
>
> I tried Rewrite rule for URI redirect for www.abc.com to abc.com ,then it
> works since URI is changed ..
>
> I need www.abc.com to get served from /var/www/nginx/abc.com without URI
> change in the browser

 http://b.lesseverything.com/2008/4/9/redirect-from-www-to-non-www-using-nginx
This is what I got when I searched for "nginx redirect www to non-www"
See if it helps.

-- 
With Regards,
Mehul Ved
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to