Guest User

Untitled

a guest
Apr 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. if ($http_user_agent ~ "MSIE 6.0" || $http_user_agent ~ "MSIE 7.0" (etc, etc)) {
  2. rewrite ^ ${ROOT_ROOT}ancient/ last;
  3. break;
  4. }
  5.  
  6. if ($http_user_agent ~ "MSIE 6.0") {
  7. rewrite ^ ${ROOT_ROOT}ancient/ last;
  8. break;
  9. }
  10. if ($http_user_agent ~ "MSIE 7.0") {
  11. rewrite ^ ${ROOT_ROOT}ancient/ last;
  12. break;
  13. }
  14.  
  15. if ($http_user_agent ~ "MSIE [67].")
  16.  
  17. set $test 0;
  18. if ($http_user_agent ~ "MSIE 6.0") {
  19. set $test 1;
  20. }
  21. if ($http_user_agent ~ "MSIE 7.0") {
  22. set $test 1;
  23. }
  24. if ($test = 1) {
  25. rewrite ^ ${ROOT_ROOT}ancient/ last;
  26. }
  27.  
  28. if ($http_user_agent ~ "(MSIE 6.0)|(MSIE 7.0)") {
  29. rewrite ^ ${ROOT_ROOT}ancient/ last;
  30. }
Add Comment
Please, Sign In to add comment