server {
listen 123.321.22.44:80;
server_name "fgresdvrerve.site.ru";
return 301 https://$host:443$request_uri;
}
server {
listen 123.321.22.44:80;
server_name 123.321.22.44;
return 301 https://$host:443$request_uri;
}
server {
listen 123.321.22.44:443;
server_name 123.321.22.44;
ssl on;
ssl_certificate /usr/local/mgr5/etc/manager.crt;
ssl_certificate_key /usr/local/mgr5/etc/manager.key;
set $mgr_proxy "https://123.321.22.44:1500";
location ^~ /manimg/ {
alias /usr/local/mgr5/skins/;
}
location / {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Secret gfdhxtfdhgfhgfhgf;
chunked_transfer_encoding off;
}
location ^~ /mancgi/ {
proxy_pass $mgr_proxy;
proxy_redirect $mgr_proxy /;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Secret gfdhxtfdhgfhgfhgf;
chunked_transfer_encoding off;
}
include /etc/nginx/vhosts-includes/*.conf;
}
server {
listen 123.321.22.44:443;
server_name "fgresdvrerve.site.ru";
# и другие настройки
}
var TableList = new Array();
var table = document.getElementsByClassName("table");
for(var i=0;i<table.length;i++){
var tr = table.item(i).getElementsByTagName("tr");
TableList[i] = new Array()
for(var j=0;j<tr.length;j++) {
var td = tr.item(j).getElementsByTagName("td");
TableList[i]['tr_'+j] = new Array()
for(var f=0;f<td.length;f++) {
TableList[i]['tr_'+j][f] = td.item(f).innerText;
}
}
}
console.log(TableList);
$.ajax({
async: false,
url: "test.php",
data: "data=" + JSON.stringify(TableList),
type: 'post',
success: function(result){
console.log(result)
}
});
if(isset($_POST['data'])){
echo 'пришел =>';
echo '<pre>';
print_r(json_decode($_POST['data'], 1));
echo '</pre>';
}else{
echo 'нет';
}