Welcome! Log In Create A New Profile

Advanced

insert multi request in nginx by one request

Posted by sokote_bi_payan 
insert multi request in nginx by one request
February 08, 2015 02:38PM
i'm android developer and my application request to my server download a file
==========================================================
Log.d("SBP", f_url[0]);
URL url = new URL(f_url[0]);
URLConnection conection = url.openConnection();
==========================================================

in debuge show one request but in server when i open access.log i see 2 or more same request ! :|

but why???

this is my nginx.config

==========================================================
user nginx;
worker_processes 1;
worker_rlimit_nofile 20000;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

#access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
==========================================================

and it's my site config:


==========================================================
server {
server_name MYSITE;
access_log /srv/www/MYSITE/logs/access.log;
error_log /srv/www/MYSITE/logs/error.log;
root /srv/www/MYSITE/public;

client_max_body_size 20m;
client_body_buffer_size 128k;

location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
access_log off;
log_not_found off;
expires 360d;
}

location / {
index index.html index.htm index.php;
}

location ~ /\. {
access_log off;
log_not_found off;
deny all;
}

location ~* \.php$ {
# include /etc/nginx/fastcgi_params;
server_tokens off;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 238
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready