質問編集履歴
2
http\.confの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,5 +11,113 @@
|
|
11
11
|
/var/log/php/のerrorlogには記載されません。
|
12
12
|
/var/log/httpd/のerrorlogに記載されています。
|
13
13
|
|
14
|
+
=====httpd.confの内容==========================
|
15
|
+
ServerRoot "/etc/httpd"
|
16
|
+
Listen 80
|
17
|
+
# LoadModule foo_module modules/mod_foo.so
|
18
|
+
#
|
19
|
+
Include conf.modules.d/*.conf
|
20
|
+
User apache
|
21
|
+
Group apache
|
22
|
+
#
|
23
|
+
ServerAdmin root@localhost
|
24
|
+
ServerName test.ABC.co.jp:80
|
25
|
+
|
26
|
+
<Directory />
|
27
|
+
AllowOverride none
|
28
|
+
Require all denied
|
29
|
+
</Directory>
|
30
|
+
|
31
|
+
DocumentRoot "/usr/local/apache2/htdocs"
|
32
|
+
|
33
|
+
<Directory "/usr/local/apache2/htdocs/">
|
34
|
+
AllowOverride None
|
35
|
+
Require all granted
|
36
|
+
</Directory>
|
37
|
+
|
38
|
+
<Directory "/usr/local/apache2/htdocs">
|
39
|
+
Options Includes ExecCGI FollowSymLinks
|
40
|
+
AllowOverride All
|
41
|
+
Require all granted
|
42
|
+
</Directory>
|
43
|
+
|
44
|
+
<IfModule dir_module>
|
45
|
+
DirectoryIndex index.php
|
46
|
+
</IfModule>
|
47
|
+
|
48
|
+
<Files ".ht*">
|
49
|
+
ForceType text/html
|
50
|
+
SetOutputFilter INCLUDES
|
51
|
+
</Files>
|
52
|
+
|
53
|
+
ErrorLog "logs/error_log"
|
54
|
+
LogLevel warn
|
55
|
+
|
56
|
+
<IfModule log_config_module>
|
57
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
58
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
59
|
+
|
60
|
+
<IfModule logio_module>
|
61
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
62
|
+
</IfModule>
|
63
|
+
CustomLog "logs/access_log" combined
|
64
|
+
</IfModule>
|
65
|
+
|
66
|
+
<IfModule alias_module>
|
67
|
+
<If "-n %{PATH_INFO}">
|
68
|
+
# 存在しないディレクトリがURLに含まれていれば、404 Not Found を返す
|
69
|
+
Redirect 404 /
|
70
|
+
</If>
|
71
|
+
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
72
|
+
</IfModule>
|
73
|
+
|
74
|
+
<Directory "/var/www/cgi-bin">
|
75
|
+
AllowOverride None
|
76
|
+
Options None
|
77
|
+
Require all granted
|
78
|
+
</Directory>
|
79
|
+
|
80
|
+
<IfModule mime_module>
|
81
|
+
TypesConfig /etc/mime.types
|
82
|
+
|
83
|
+
AddType application/x-compress .Z
|
84
|
+
AddType application/x-gzip .gz .tgz
|
85
|
+
AddType application/x-httpd-php .php .inc
|
86
|
+
AddHandler cgi-script .cgi .pl
|
87
|
+
|
88
|
+
AddType text/html .shtml
|
89
|
+
AddOutputFilter INCLUDES .shtml
|
90
|
+
</IfModule>
|
91
|
+
AddDefaultCharset off
|
92
|
+
|
93
|
+
<IfModule mime_magic_module>
|
94
|
+
MIMEMagicFile conf/magic
|
95
|
+
</IfModule>
|
96
|
+
|
97
|
+
EnableSendfile on
|
98
|
+
IncludeOptional conf.d/*.conf
|
99
|
+
|
100
|
+
Include conf/extra/httpd-default.conf
|
101
|
+
|
102
|
+
<IfModule prefork.c>
|
103
|
+
StartServers 256
|
104
|
+
MinSpareServers 256
|
105
|
+
MaxSpareServers 256
|
106
|
+
ServerLimit 512
|
107
|
+
MaxRequestWorkers 512
|
108
|
+
MaxConnectionsPerChild 500
|
109
|
+
</IfModule>
|
110
|
+
|
111
|
+
<IfModule worker.c>
|
112
|
+
ServerLimit 60
|
113
|
+
StartServers 2
|
114
|
+
MaxRequestWorkers 1500
|
115
|
+
MinSpareThreads 25
|
116
|
+
MaxSpareThreads 75
|
117
|
+
ThreadsPerChild 25
|
118
|
+
MaxConnectionsPerChild 2000
|
119
|
+
</IfModule>
|
120
|
+
Include conf/extra/php-fpm.conf
|
121
|
+
========================httpd.conf内容=============================
|
14
122
|
どこを修正すればいいでしょうか?
|
15
123
|
宜しくお願いします。
|
1
質問文の変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,5 +6,10 @@
|
|
6
6
|
PHPプログラムにて、特定のページから戻る際、画像データが大量にあった場合に下記のエラーが発生してしまいます(/var/log/httpd/error_log)。
|
7
7
|
エラーメッセージ「[proxy_fcgi:error] [pid 8850:tid 14012548987648] (104)Connection reset by peer」
|
8
8
|
|
9
|
+
外部の画像ファイルがあるサーバに、APIを利用して画像を表示し、その後、画面を
|
10
|
+
戻す動きをしています。
|
11
|
+
/var/log/php/のerrorlogには記載されません。
|
12
|
+
/var/log/httpd/のerrorlogに記載されています。
|
13
|
+
|
9
14
|
どこを修正すればいいでしょうか?
|
10
15
|
宜しくお願いします。
|