Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # www.lukoil-masla.ru
- server {
- listen 46.46.160.137;
- server_name spec.lukoil-lubricants.ru www.spec.lukoil-lubricants.ru;
- # location ^~ /spec {
- # proxy_pass http://127.0.0.1:8003$1;
- # }
- #
- # location / {
- # rewrite ^(.*) http://lukoil-masla.ru$1 permanent;
- # }
- location /robots.txt {
- alias /vault/production/lukoil/htdocs/old_robots.txt;
- }
- location /spec/ {
- proxy_pass http://127.0.0.1:8003$1;
- }
- location /cms/ {
- proxy_pass http://127.0.0.1:8003$1;
- }
- location ~* ^/tinymce/.*\.htm$ {
- proxy_pass http://127.0.0.1:8003$1;
- }
- location / {
- rewrite ^(.*) http://lukoil-masla.ru$1 permanent;
- }
- location ~* ^.+\.(css|js|png|gif|jpe?g|swf|pdf|rar|7z|doc|docx|xls|xlsx|svg|ai|eps|cdr|zip|mp4|wav)$ {
- root /vault/production/lukoil/htdocs;
- access_log off;
- expires 30d;
- }
- }
- server {
- listen 46.46.160.137;
- server_name old.lukoil-masla.ru www.old.lukoil-masla.ru;
- 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;
- if ($http_user_agent ~* "searchbot") {
- return 403;
- }
- # location /spec/ {
- # rewrite http://spec.lukoil-lubricants.ru/spec/ permanent;
- # }
- location /robots.txt {
- alias /vault/production/lukoil/htdocs/old_robots.txt;
- }
- location ~* ^.+\.(css|js|png|gif|jpe?g|swf|pdf)$ {
- root /vault/production/lukoil/htdocs;
- access_log off;
- expires 30d;
- }
- location / {
- proxy_pass http://127.0.0.1:8003/;
- }
- }
- server {
- listen 46.46.160.137;
- server_name ~^(?:lukoil\.promodev\.ru|(?:www\.)?lukoil\-(?:lubricants)\.(?:com|ru)|(?:www\.)?teboil\.ru)$;
- #server_name ~^(?:lukoil\.promodev\.ru|(?:www\.)?lukoil\-(?:lubricants|masla)\.(?:com|ru)|(?:www\.)?teboil\.ru)$;
- #server_name ~^(?:lukoil\.promodev\.ru|(?:www\.)?(?:spec\.)?lukoil\-(?:lubricants|masla)\.(?:com|ru)|(?:www\.)?teboil\.ru)$;
- 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;
- # site is closed
- # location ^(.*)$ {
- rewrite ^(.*) http://lukoil-masla.ru$1 permanent;
- # }
- if ($http_user_agent ~* "searchbot") {
- return 403;
- }
- location ~* ^.+\.(css|js|png|gif|jpe?g|swf|pdf)$ {
- root /vault/production/lukoil/htdocs;
- access_log off;
- expires 30d;
- }
- #location ~* ^scheme://$host/spec/$ {
- # rewrite ^(.*) scheme://$host$1 permanent;
- #}
- # location / {
- # proxy_pass http://127.0.0.1:8003/;
- # }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement