Я запускаю Apache с PHP-FPM на сервере RHEL 9.
После обновления Apache от версии 2.4.57 до 2.4.62 все ответы HTTP теперь включают в себя eNcoding: заголовок с ростом , даже когда сценарий PHP явно устанавливает
Into-Length . Файлы конфигурации PHP.
Вот простой скрипт PHP, который я использовал для проверки поведения ответа. Когда я запускаю это на Apache 2.4.57, он работает правильно, и ответ включает в себя заголовок -контента .
Однако тот же сценарий PHP на Apache 2.4.62 приводит к ответу с помощью chunked-encoding: Chunked .
.
< /code>
Вот мой сайт conf file < /p>
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule status_module modules/mod_status.so
Listen 443
ServerAdmin [email protected]
DocumentRoot /var/www/smarty
SSLEngine On
SSLOptions +StrictRequire
SSLProtocol +TLSv1.2 -TLSv1.1 -TLSv1 -SSLv3
SSLCipherSuite HIGH:!MEDIUM:!LOW:!NULL:!aNULL:!MD5:!RC4
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
KeepAliveTimeout 10
SetEnvIf Request_URI ".*" no-gzip
SetEnv proxy-sendcl
LogLevel proxy:trace6
TraceEnable Off
Options -Indexes
# Proxy declaration
# we must declare a parameter in here (doesn't matter which) or
# it'll not register the proxy ahead of time
ProxySet disablereuse=off
# Note: If you configure php-fpm to use the "pm = ondemand"
#then use "ProxySet disablereuse=on"
SetHandler proxy:fcgi://php-fpm
SetEnv proxy-sendcl 1
LogLevel debug
ErrorLog logs/smartySSL.com-error.log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{Connection}i\" %k" my_combined
CustomLog logs/smartySSL.com-access.log my_combined
Alias /prodTest /var/www/prod_testing_smarty
#disabilita il listing
Options -Indexes
Require ip 127.0.0.1
SetHandler server-status
Allow from 127.0.0.1
Allow from ::1
Deny from all
Order Allow,Deny
Allow from 127.0.0.1
Allow from ::1
ProxyPass unix:/run/php-fpm/www.sock|fcgi://localhost/fpm-status
RewriteEngine on
RewriteRule ^/TcpWeb/rest/FWUpdate/(v[0-9]+)/([A-Z][0-9]+) /rest/get_fwUpdate.php?version=$1&id=$2&%{QUERY_STRING} [END]
RewriteCond %{QUERY_STRING} ^([^&]+)
RewriteRule ^/TcpWeb/rest/GetAll/(v[0-9]+)/([A-Z][0-9]+)/?$ /rest/get_all.php?version=$1&id=$2&%{QUERY_STRING} [END]
RewriteRule ^/TcpWeb/rest/PutAll/(v[0-9]+)/([A-Z][0-9]+) /rest/put_all.php?version=$1&id=$2 [END]
RewriteRule ^/TcpWeb/rest/DiagnosticLog/(v[0-9]+)/([A-Z][0-9]+) /rest/put_diagnosticLog.php?version=$1&id=$2 [END]
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* -[F]
< /code>
Есть идеи?
спасибо < /p>
Подробнее здесь: https://stackoverflow.com/questions/796 ... ion-2-4-62
Апач ⇐ Apache
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как исправить Апач? Потому что он не запускается, когда я нажимаю «Пуск»
Anonymous » » в форуме Apache - 0 Ответы
- 82 Просмотры
-
Последнее сообщение Anonymous
-