nginx & apache & bitrix

dema515 dema515 at yandex.ru
Thu Jun 14 01:33:38 MSD 2007


Зравствуйте

Помогите решить следующую проблемую
У меня на сервере работает связка nginx & apache и с некоторых пор bitrix

У этого битрикса организован - ЧПУ через 404 ошибку - подменяется заголовок
ответа с 404 на 200.


И вот при обращении к некоторым страницым появляются страннные символы в начале:
http://www.dartoffice.ru/tovars/catalog/2432/



curl -v 'http://www.dartoffice.ru/tovars/catalog/2432/' -o ngnix.html
* About to connect() to www.dartoffice.ru port 80
*   Trying 89.108.81.167... connected
* Connected to www.dartoffice.ru (89.108.81.167) port 80
> GET /tovars/catalog/2432/ HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-pc-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8e
zlib/1.2.3
> Host: www.dartoffice.ru
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/0.5.24
< Date: Wed, 13 Jun 2007 20:13:37 GMT
< Content-Type: text/html; charset=windows-1251
< Transfer-Encoding: chunked
< Connection: keep-alive
< Keep-Alive: timeout=20
< P3P: policyref="/bitrix/p3p.xml", CP="NON DSP COR CUR ADM DEV PSA PSD OUR UNR
BUS UNI COM NAV INT DEM STA"
< Set-Cookie: PHPSESSID=a7f7613ac48a223fe3a727003f9e92e2; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Transfer-Encoding: chunked
< Content-Language: ru
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31468    0 31468    0     0   127k      0 --:--:-- --:--:-- --:--:-- 1275k*
Connection #0 to host www.dartoffice.ru left intact

* Closing connection #0



curl -v 'http://www.dartoffice.ru/tovars/catalog/2432/' -o apache.html
* About to connect() to www.dartoffice.ru port 80
*   Trying 127.0.0.1... connected
* Connected to www.dartoffice.ru (127.0.0.1) port 80
> GET /tovars/catalog/2432/ HTTP/1.1
> User-Agent: curl/7.15.5 (x86_64-pc-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8e
zlib/1.2.3
> Host: www.dartoffice.ru
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 13 Jun 2007 20:14:12 GMT
< Server: Apache/2.0.58
< P3P: policyref="/bitrix/p3p.xml", CP="NON DSP COR CUR ADM DEV PSA PSD OUR UNR
BUS UNI COM NAV INT DEM STA"
< Set-Cookie: PHPSESSID=20be0ff8d6b83df09fc6387e6a8891b8; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=windows-1251
< Content-Language: ru
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31455    0 31455    0     0   129k      0 --:--:-- --:--:-- --:--:-- 14.8M*
Closing connection #0


Как видно и логов выдача апача и nginx различается (см размер документа).
В чем причина и как это починить?






More information about the nginx-ru mailing list