location / {
try_files $uri @nodes;
}
location @nodes {
proxy_pass http://nodes;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_http_version 1.1;
#proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection "upgrade";
}
<form>
<p><input type="radio" name="kollichesto" value="a1" checked>Выставить все вещи.<Br></p>
<p><input type="radio" name="kollichesto" value="a1" checked>Выставить только 1 вещь</p>
<p><input type="radio" name="pricebox" value="a2">По миним. цене -1 коп.</p>
<p><input type="radio" name="pricebox" value="a2">По цене автопокупки</p>
<p><input type="radio" name="pricebox" value="a1" checked>По минимальной цене</p>
<input type="hidden" name="ui_id" value="'.$res['ui_id'].'">
<p><input type="number" min="0.51" step="0.01" name="price" placeholder="Своя цена"> руб.</p>
<button type="sumbit">Выставить на продажу</button>
</form>
$('form').on('submit', function (e) {
e.preventDefault();
var form = $(this);
$.ajax({
url: "api.php",
type:"GET",
data: form.serialize(),
dataType:"html",
beforeSend:funcBeforeinfoNewItemsProdaj,
success: funcSuccessinfoNewItemsProdaj
});
});
RewriteCond %{HTTP_HOST} ^old.com$ [NC]
RewriteCond %{REQUEST_URI} !^/robots.txt$ [NC]
RewriteRule ^(.*)$ http://new.com/$1 [L,R=301]
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
switch ($lang){
case "en":
echo do_shortcode('[metaslider id=123]'); // English
break;
case "fr":
echo do_shortcode('[metaslider id=456]'); // French
break;
default:
//default
}