Some of my user cannot access my website

Hi guys, I need your help to help me identify a problem. I’m running an
online marketplace here in Indonesia. Right now I have 1 mod perl server
using apache and 1 nginx server as proxy. But some of my users complain
they cannot access my website, http://www.tokopedia.com. And I found out
a fact that if they use mikrotik HttpProxy, they cannot access my
website, but they can access other website.

If they use firefox, they found err message : Content Encoding Error
If they use google chrome, they found err message :
ERR_INVALID_CHUNKED_ENCODING

Can you help me with this?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,225421,225421#msg-225421

by the way here i put my website proxy configuration

#-- notice info
error_log /data/share/project/www-conf/logs/nginx.err.proxy.log;
pid /data/share/project/www-conf/logs/nginx.proxy.pid;

user ngproxy tokopedia;
worker_processes 4;

events {
worker_connections 1024;
}

http {
include /share/project/www-conf/nginx/tkpmodperl1/mime.types;
include /share/project/www-conf/nginx/deny.conf;

default_type text/plain;
sendfile on;
keepalive_timeout 5;

    set_real_ip_from   192.168.1.0/24;
    real_ip_header     X-Forwarded-For;

gzip on;
#gzip off;
gzip_types text/plain text/css application/x-javascript;
gzip_comp_level 9;
gzip_proxied any;
#gzip_vary off;
#charset ISO-8859-1;

charset UTF-8;
source_charset UTF-8;

#-------------------
server {
server_name tokopedia;
listen 80;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server www.tokopedia.com;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_set_header Accept-Encoding “”;
proxy_buffering on;
proxy_buffers 8 64k;

if ($http_user_agent ~* big.brother|crawl ){return 403;}
if ($http_user_agent = "" ){return 403;}

location /___pstatus {
  stub_status on;
  access_log   off;
}

location /img/ {
  proxy_pass  http://xxx.xxx.xxx.xxx/img/;
}

location ~* ^/(.*)\.(js|css)$ {
  proxy_pass  http://xxx.xxx.xxx.xxx/$1.$2;
}


location / { proxy_pass http://xxx.xxx.xxx.xxx:888/;  }

}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,225421,225422#msg-225422

Hello!

On Tue, Apr 17, 2012 at 06:44:48AM -0400, leontinus wrote:

Can you help me with this?

The messages suggest there is something wrong with the proxy in
question, most likely it fails to handle chunked encoding
properly. You may try to disable use of chunked transfer encoding
with

chunked_transfer_encoding off;

to see if it helps. Note though that it will also make keepalive
connections impossible if Content-Length isn’t known. You may
also try to disabling keepalive connections completely with

keepalive_timeout 0;

See here for details:

http://nginx.org/r/chunked_transfer_encoding
http://nginx.org/r/keepalive_timeout

Maxim D.

Maxim D. Wrote:

some of my users complain

ERR_INVALID_CHUNKED_ENCODING

http://mailman.nginx.org/mailman/listinfo/nginx
Hi Maxim D.,

Thank you for these tips, I will try it and see if it help my user. I
will update again soon I get the result.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,225421,225441#msg-225441