Welcome! Log In Create A New Profile

Advanced

net::ERR_INCOMPLETE_CHUNKED_ENCODING

June 28, 2014 05:30PM
Всем привет, нужна помощь. Установлен nginx 1.6.0 + php5.4 fpm .Пытаюсь поставить mediawiki 1.23.1 , после установки столкнулся с проблемой, что не догружается стили (сам файл отдается урезанным), в связи с этим страница отображается криво.

Проблема с файлом вида load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=20140628T175745Z

в меню инструментов разработчиков chromium в столбце статус:

net::ERR_INCOMPLETE_CHUNKED_ENCODING

Конфиг

server {
server_name localhost;
root /var/www/wiki;
# Location for the wiki's root
location / {
index index.php;
try_files $uri $uri/ @mediawiki;

# Do this inside of a location so it can be negated
location ~ \.php$ {
try_files $uri $uri/ =404; # Don't let php execute non-existent php files
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm-wiki.sock;
}
}

location /images {
# Separate location for images/ so .php execution won't apply

location ~ ^/images/thumb/(archive/)?[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ {
# Thumbnail handler for MediaWiki
# This location only matches on a thumbnail's url
# If the file does not exist we use @thumb to run the thumb.php script
try_files $uri $uri/ @thumb;
}
}
location /images/deleted {
# Deny access to deleted images folder
deny all;
}

# Deny access to folders MediaWiki has a .htaccess deny in
location /cache { deny all; }
location /languages { deny all; }
location /maintenance { deny all; }
location /serialized { deny all; }

# Just in case, hide .svn and .git too
location ~ /.(svn|git)(/|$) { deny all; }

# Hide any .htaccess files
location ~ /.ht { deny all; }

# Uncomment the following code if you wish to hide the installer/updater
## Deny access to the installer
#location /mw-config { deny all; }

# Handling for the article path
location @mediawiki {
include /etc/nginx/fastcgi_params;
# article path should always be passed to index.php
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_pass unix:/var/run/php5-fpm-wiki.sock;
}

# Thumbnail 404 handler, only called by try_files when a thumbnail does not exist
location @thumb {

# Do a rewrite here so that thumb.php gets the correct arguments
rewrite ^/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2;
rewrite ^/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2&archived=1;

# Run the thumb.php script
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/thumb.php;
fastcgi_pass unix:/var/run/php5-fpm-wiki.sock;
}
# не позволять nginx отдавать файлы, начинающиеся с точки (.htaccess, .svn, .git и прочие)
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}

Кто сталкивался?
Subject Author Posted

net::ERR_INCOMPLETE_CHUNKED_ENCODING

midobiho June 28, 2014 05:30PM

Re: net::ERR_INCOMPLETE_CHUNKED_ENCODING

Maxim Dounin June 30, 2014 07:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready