summaryrefslogtreecommitdiff
path: root/docs/manual/vhosts/fd-limits.xml.ja
blob: 0e32d8dddb3d5aa68354a4abd77d91e00599c9bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version='1.0' encoding='iso-2022-jp' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
<!-- English Revision: 396609 -->

<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<manualpage metafile="fd-limits.xml.meta">
<parentdocument href="./">$B%P!<%A%c%k%[%9%H(B</parentdocument>

  <title>$B%U%!%$%k5-=R;R$N8B3&(B</title>

<summary>

    <p>$B$?$/$5$s$N%P!<%A%c%k%[%9%H$r1?MQ$9$k>l9g!"$b$7!"(B
    $B3F%P!<%A%c%k%[%9%H$4$H$K0[$J$k%m%0%U%!%$%k$,;XDj$7$F$"$k$H!"(B
    Apache $B$,%U%!%$%k5-=R;R(B (<cite>$B%U%!%$%k%O%s%I%k(B</cite>$B$H$b8F$P$l$^$9(B)
    $B$r;H$$@Z$C$F$7$^$&$3$H$,$"$j$^$9!#(BApache $B$,;HMQ$9$k%U%!%$%k(B
    $B5-=R;R$N?t$O!"3F%(%i!<%m%0%U%!%$%k$K$D$-(B 1 $B$D!"B>$N%m%0%U%!%$%k$N(B
    $B%G%#%l%/%F%#%V$K$D$-(B 1 $B$D!"$5$i$KFbIt$G;HMQ$9$k(B 10 $B$+$i(B 20$B!"(B
    $B$N9g7W$K$J$j$^$9!#(BUnix $B%*%Z%l!<%F%#%s%0%7%9%F%`$G$O%W%m%;%9$4$H$K(B
    $B;HMQ2DG=$J%U%!%$%k5-=R;R$N?t$r@)8B$7$F$$$^$9!#$?$$$F$$$N>l9g$O(B 64 $B$G!"(B
    $BIaDL$OBg$-$JCM$N%O!<%I%j%_%C%H$^$GA}$d$9$3$H$,$G$-$^$9!#(B</p>

    <p>Apache $B$OI,MW$K1~$8$F>e8B$r3HBg$7$h$&$H;n$_$^$9$,!"(B
    $B0J2<$N$h$&$J>l9g$K$O$&$^$/$$$+$J$$$+$b$7$l$^$;$s!#(B</p>

    <ol>
      <li>$BMxMQ$7$F$$$k%7%9%F%`$G(B <code>setrlimit()</code>
      $B%7%9%F%`%3!<%k$,Ds6!$5$l$F$$$J$$!#(B</li>

      <li>$B%7%9%F%`>e$G(B <code>setrlimit</code>(RLIMIT_NOFILE) $B$,F0:n$7$J$$(B
      ($B$?$H$($P(B Solaris 2.3 $B$N$h$&$K(B)$B!#(B</li>

      <li>$BMW5a$5$l$k%U%!%$%k5-=R;R$N?t$,(B
      $B%O!<%I%j%_%C%H$rD6$($F$7$^$&!#(B</li>
      
      <li>$B%7%9%F%`$K%U%!%$%k5-=R;R$K4X$7$FJL$N@)8B$,B8:_$7$F$7$^$C$F$$$k!#(B
      $B$?$H$($P!"(Bstdio $B%9%H%j!<%`$G$O%U%!%$%k5-=R;R$r(B 256 $B0J>e;H$($J$$(B
      (Solaris 2)$B!"$J$I!#(B</li>
    </ol>

        <p>$BLdBj$,H/@8$7$?;~$K<h$jF@$kBP=hJ}K!$O<!$N$H$*$j(B:</p>

    <ul>
      <li>$B%m%0%U%!%$%k$N?t$r8:$i$9!#(B<directive type="section"
      module="core">VirtualHost</directive>
      $B%;%/%7%g%s$G%m%0%U%!%$%k$r;XDj$;$:!"%a%$%s$N%m%0%U%!%$%k$K$N$_5-O?$9$k!#(B
      ($B$3$l$K4X$9$k>\$7$$>pJs$O0J2<$N(B<a
      href="#splitlogs">$B%m%0%U%!%$%k$NJ,3d(B</a>$B$rFI$s$G$/$@$5$$!#(B)</li>

      <li>
        $B$b$7!"A0=R$N(B 1 $B$^$?$O(B 2 $B$N>l9g$G$"$l$P!"(B
        Apache $B$r5/F0$9$kA0$K%U%!%$%k5-=R;R$rA}$d$7$^$9!#(B
        $B$?$H$($P<!$N$h$&$J%9%/%j%W%H$r;H$$$^$9!#(B

        <example>
          <code>#!/bin/sh<br />
           ulimit -S -n 100<br />
           exec httpd</code>
        </example>
      </li>
    </ul>

    <p>$B%U%!%$%k5-=R;R$NLdBj$K$D$$$F$N>\:Y$d!"(B
    $B%*%Z%l!<%F%#%s%0%7%9%F%`$4$H$N2r7hJ}K!$K$D$$$F$O!V(B<a
    href="../misc/descriptors.html">$B%U%!%$%k5-=R;R$H(B
    Apache</a>$B!W$NJ8=q$r;2>H$7$F$/$@$5$$!#(B
    </p>

</summary>

<section id="splitlogs"><title>$B%m%0%U%!%$%k$NJ,3d(B</title>

<p>$BJ#?t$N%P!<%A%c%k%[%9%H$N%m%0$rF1$8%m%0%U%!%$%k$K<}=8$7$h$&$H$7$F$$$k$H$-$K$O!"(B
$B3F%P!<%A%c%k%[%9%H$K$D$$$FE}7WE*$J2r@O$r<B9T$9$k$?$a$K8e$G%m%0%U%!%$%k$r(B
$BJ,3d$7$?$/$J$k$+$b$7$l$^$;$s!#$3$l$O0J2<$N$h$&$K$7$F<B8=$G$-$^$9!#(B</p>

<p>$B$^$:!"%P!<%A%c%k%[%9%H$N>pJs$r%m%0$N%(%s%H%j$KDI2C$9$kI,MW$,$"$j$^$9!#(B
$B$3$l$O(B <directive module="mod_log_config">LogFormat</directive>
$B%G%#%l%/%F%#%V$N(B <code>%v</code> $BJQ?t$r;H$&$3$H$G$G$-$^$9!#(B
$B$3$l$r%m%0$N%U%)!<%^%C%HJ8;zNs$N@hF,$KDI2C$7$^$9(B:</p>

<example>
LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost<br />
CustomLog logs/multiple_vhost_log vhost
</example>

<p>$B$3$l$O(B common log format $B$N%m%0$r:n@.$7$^$9$,!"$=$l$>$l$N9T$N@hF,$K(B
$B@55,2=$5$l$?%P!<%A%c%k%[%9%H$NL>A0(B
(<directive module="core">ServerName</directive>
$B%G%#%l%/%F%#%V$K=q$+$l$F$$$k$b$N(B) $B$,IU2C$5$l$^$9!#(B
($B%m%0%U%!%$%k$N%+%9%?%^%$%:$N>\:Y$K$D$$$F$O(B <a 
href="../mod/mod_log_config.html#formats">Custom Log Formats</a> $B$r(B
$BFI$s$G$/$@$5$$!#(B)</p>

<p>$B%m%0%U%!%$%k$r3FItJ,(B ($B%P!<%A%c%k%[%9%HKh$K(B 1 $B%U%!%$%k(B) $B$KJ,$1$?$$$H$-$O!"(B
<code><a href="../programs/other.html">split-logfile</a></code>
$B$r;H$C$F9T$J$&$3$H$,$G$-$^$9!#%W%m%0%i%`$O(B Apache $BG[I[$N(B 
<code>support</code> $B%G%#%l%/%H%j$K$"$j$^$9!#(B</p>

<p>$B0J2<$N$h$&$J%3%^%s%I$G$3$N%W%m%0%i%`$r<B9T$7$^$9(B:</p>

<example>
split-logfile &lt; /logs/multiple_vhost_log
</example>

<p>$B$3$N%W%m%0%i%`$O%P!<%A%c%k%[%9%H$N%m%0%U%!%$%k$NL>A0$H$H$b$K<B9T$5$l!"(B
$B%m%0%U%!%$%k$K8=$l$k$=$l$>$l$N%P!<%A%c%k%[%9%HKh$K0l$D$N%U%!%$%k$r:n@.$7$^$9!#(B
$B$=$l$>$l$N%U%!%$%k$O(B <code>$B%[%9%HL>(B.log</code> $B$H$$$&L>A0$K$J$j$^$9!#(B</p>

</section>
</manualpage>