Redirect Mobile Users to m.domain.com

Edho Arief edho at myconan.net
Mon Aug 6 21:48:01 UTC 2012


On Tue, Aug 7, 2012 at 4:45 AM, yaronycity <nginx-forum at nginx.us> wrote:
> I have changed it this, and it still does not work:(
>
> server {
>   server_name domain.com www.domain.com;
>   root /home/nginx/domains/domain.com/public;
>
>   server_name m.domain.com www.m.domain.com;
>   root /home/nginx/domains/domain.com/public/m;
>

Add as separate server { ... }, not merged into one.



More information about the nginx mailing list