Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.79 KB | None | 0 0
  1. # www.lukoil-masla.ru
  2.  
  3. server {
  4.         listen 46.46.160.137;
  5.         server_name spec.lukoil-lubricants.ru www.spec.lukoil-lubricants.ru;
  6.  
  7. #        location ^~ /spec {
  8. #                proxy_pass http://127.0.0.1:8003$1;
  9. #        }
  10. #
  11. #   location / {
  12. #           rewrite ^(.*) http://lukoil-masla.ru$1 permanent;
  13. #   }
  14.  
  15.     location /robots.txt {  
  16.         alias /vault/production/lukoil/htdocs/old_robots.txt;  
  17.     }
  18.  
  19.     location /spec/ {
  20.         proxy_pass http://127.0.0.1:8003$1;
  21.     }
  22.  
  23.         location /cms/ {
  24.                 proxy_pass http://127.0.0.1:8003$1;
  25.         }
  26.    
  27.     location ~* ^/tinymce/.*\.htm$ {
  28.         proxy_pass http://127.0.0.1:8003$1;
  29.     }
  30.  
  31.     location / {
  32.         rewrite ^(.*) http://lukoil-masla.ru$1 permanent;
  33.     }
  34.  
  35.         location ~* ^.+\.(css|js|png|gif|jpe?g|swf|pdf|rar|7z|doc|docx|xls|xlsx|svg|ai|eps|cdr|zip|mp4|wav)$ {
  36.                 root /vault/production/lukoil/htdocs;
  37.                 access_log off;
  38.                 expires 30d;
  39.         }
  40. }
  41. server {
  42.         listen 46.46.160.137;
  43.         server_name old.lukoil-masla.ru www.old.lukoil-masla.ru;
  44.         rewrite /f/document/178/TDS_LUKOYL_ATF_SYNTH_MULTI_v.1.4_23.03.2016_rus.pdf /f/document/178/TDS_LUKOYL_ATF_SYNTH_MULTI_v.1.6_25.05.2016_rus.pdf permanent;
  45.  
  46.         if ($http_user_agent ~* "searchbot") {
  47.                 return 403;
  48.         }
  49.  
  50. #        location /spec/ {
  51. #       rewrite http://spec.lukoil-lubricants.ru/spec/ permanent;
  52. #        }
  53.  
  54.         location /robots.txt {
  55.         alias /vault/production/lukoil/htdocs/old_robots.txt;
  56.     }
  57.  
  58.         location ~* ^.+\.(css|js|png|gif|jpe?g|swf|pdf)$ {
  59.                 root /vault/production/lukoil/htdocs;
  60.                 access_log off;
  61.                 expires 30d;
  62.         }
  63.  
  64.         location / {
  65.                 proxy_pass http://127.0.0.1:8003/;
  66.         }
  67. }
  68.  
  69.  
  70. server {
  71.     listen 46.46.160.137;
  72.         server_name ~^(?:lukoil\.promodev\.ru|(?:www\.)?lukoil\-(?:lubricants)\.(?:com|ru)|(?:www\.)?teboil\.ru)$;
  73.     #server_name ~^(?:lukoil\.promodev\.ru|(?:www\.)?lukoil\-(?:lubricants|masla)\.(?:com|ru)|(?:www\.)?teboil\.ru)$;
  74.     #server_name ~^(?:lukoil\.promodev\.ru|(?:www\.)?(?:spec\.)?lukoil\-(?:lubricants|masla)\.(?:com|ru)|(?:www\.)?teboil\.ru)$;
  75.     rewrite /f/document/178/TDS_LUKOYL_ATF_SYNTH_MULTI_v.1.4_23.03.2016_rus.pdf /f/document/178/TDS_LUKOYL_ATF_SYNTH_MULTI_v.1.6_25.05.2016_rus.pdf permanent;
  76.  
  77.     # site is closed
  78.     # location ^(.*)$ {
  79.                 rewrite ^(.*) http://lukoil-masla.ru$1 permanent;
  80.         # }
  81.  
  82.     if ($http_user_agent ~* "searchbot") {
  83.         return 403;
  84.     }
  85.  
  86.     location ~* ^.+\.(css|js|png|gif|jpe?g|swf|pdf)$ {
  87.         root /vault/production/lukoil/htdocs;
  88.         access_log off;
  89.         expires 30d;
  90.     }
  91.  
  92.     #location ~* ^scheme://$host/spec/$ {
  93.     #   rewrite ^(.*) scheme://$host$1 permanent;
  94.     #}
  95.  
  96.     # location / {
  97.     #   proxy_pass http://127.0.0.1:8003/;
  98.     # }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement