Welcome! Log In Create A New Profile

Advanced

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

February 10, 2019 03:10PM
Добрый день!

После сборки 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

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

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

gavrik February 10, 2019 03:10PM

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

gavrik February 10, 2019 03:27PM

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

Maxim Dounin February 10, 2019 09:50PM

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

gavrik February 11, 2019 03:40AM

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

gavrik February 11, 2019 03:42AM

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

Илья Шипицин February 11, 2019 07:22AM

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

gavrik February 12, 2019 05:48AM

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

Konstantin Tokarev February 12, 2019 06:12AM

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

gavrik February 12, 2019 06:47AM

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

Maxim Konovalov February 12, 2019 07:12AM

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

gavrik February 12, 2019 07:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
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