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, 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 :

Can you help me with this?

Posted at Nginx Forum:

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/;

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;

    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;
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 ~*|crawl ){return 403;}
if ($http_user_agent = "" ){return 403;}

location /___pstatus {
  stub_status on;
  access_log   off;

location /img/ {

location ~* ^/(.*)\.(js|css)$ {

location / { proxy_pass;  }


Posted at Nginx Forum:


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

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:

Maxim D.

Maxim D. Wrote:

some of my users complain


nginx Info Page
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: