'm new to nginx, comming from apache and i basically want to do the following: Based on user-agent: iPhone: redirect to iphone.mydomain.com android: redirect to android.mydomain.com facebook: reverse proxy to otherdomain.com all other: redirect to ... and tried it the following way: location /tvoice { if ($http_user_agent ~ iPhone ) { rewrite ^(.*) https://m.domain1.com$1by fadh - How to...
![]() |
![]() |
![]() |
![]() |
|