error_page 555 = @pass;
location @pass {
auth_basic "Unauthorized";
auth_basic_user_file /var/www/dev_htpasswd;
proxy_pass http://127.0.0.1:82;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
if ($http_host ~* "^(dev|old|www.old|www.dev)\..*\..{2,8}$"){
return 555;
}
if ($http_host ~* "^.*\.ks03\.ru$"){
return 555;
}
}
find -type f -name '*.html' -exec sed -i 's/img src\x3D\x22\x22/img src=img src\x3D\x22some_class\x22/g' {} \;
#RewriteCond %{HTTP_HOST} ^site-decor\.ru$ [NC]
#RewriteRule ^(.*)$ http://site-d.ru/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} ^www.site-decor\.ru$ [NC]
#RewriteRule ^(.*)$ http://site-d.ru/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} ^www.site-d\.ru$ [NC]
#RewriteRule ^(.*)$ http://site-d.ru/$1 [R=301,L]