nginx отображает html как обычный текст со всеми Http headers

gavrik nginx-forum на forum.nginx.org
Вс Фев 10 20:10:34 UTC 2019


Добрый день!

После сборки nginx отображает html страницу как текстовый файл со всеми
полученными заголовками примерно вот такого вида:

Date: Sun, 10 Feb 2019 19:33:52 GMT
Content-Type: text/html
Content-Length: 101
Connection: keep-alive

<html>
<head>
test page
</head>
<body>
some content
</body>
</html>

Если собирать со стандартными файлами ngx_http_special_response.c и
ngx_http_header_filter_module.c - всё работает как обычно. Я уже все
перепробовал, всё перерыл, на сервер фолте спрашивал - никто не встречался с
таким поведением.


Вот параметры конфигурации:
./configure  --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2'
--with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now'
--prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf
--http-log-path=/var/log/nginx/access.log
--error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock
--pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-scgi-temp-path=/var/lib/nginx/scgi
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit
--with-http_ssl_module --with-http_stub_status_module
--with-http_realip_module --with-http_auth_request_module
--with-http_addition_module --with-http_dav_module --with-http_flv_module
--with-http_gunzip_module --with-http_gzip_static_module
--with-http_image_filter_module --with-http_mp4_module
--with-http_perl_module --with-http_secure_link_module

ПОМОГИТЕ ПОЖАЛУЙСТА! Уже неделю я ищу ответа

Posted at Nginx Forum: https://forum.nginx.org/read.php?21,282969,282969#msg-282969



Подробная информация о списке рассылки nginx-ru