]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | <HTML> |
2 | <!-- SECTION: References --> | |
3 | <HEAD> | |
4 | <TITLE>cupsd.conf</TITLE> | |
178cb736 | 5 | <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css"> |
ef416fc2 | 6 | </HEAD> |
7 | <BODY> | |
8 | ||
178cb736 | 9 | <H1 CLASS="title">cupsd.conf</H1> |
bd7854cb | 10 | |
ef416fc2 | 11 | <P>The <VAR>/etc/cups/cupsd.conf</VAR> file contains |
12 | configuration <I>directives</I> that control how the server | |
13 | functions. Each directive is listed on a line by itself followed | |
14 | by its value. Comments are introduced using the number sign ("#") | |
15 | character at the beginning of a line.</P> | |
16 | ||
17 | <P>Since the server configuration file consists of plain text, | |
18 | you can use your favorite text editor to make changes to it. | |
19 | After making any changes, restart the <CODE>cupsd(8)</CODE> | |
20 | process using the startup script for your operating system:</P> | |
21 | ||
22 | <UL> | |
23 | ||
3dd9c340 | 24 | <LI>AIX, Linux, Solaris: |
ef416fc2 | 25 | <PRE CLASS="command"> |
26 | /etc/init.d/cups restart | |
27 | </PRE></LI> | |
28 | ||
29 | <LI>HP-UX: | |
30 | <PRE CLASS="command"> | |
31 | /sbin/init.d/cups restart | |
32 | </PRE></LI> | |
33 | ||
ef416fc2 | 34 | <LI>MacOS X: |
35 | <PRE CLASS="command"> | |
568fa3fa MS |
36 | sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist |
37 | sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist | |
ef416fc2 | 38 | </PRE></LI> |
39 | ||
ef416fc2 | 40 | </UL> |
41 | ||
42 | <P>You can also edit this file from the CUPS web interface, which | |
43 | automatically handles restarting the scheduler.</P> | |
44 | ||
82cc1f9a MS |
45 | <BLOCKQUOTE><B>Note:</B> |
46 | ||
f3c17241 | 47 | <P>The specification of time units ("w" for weeks, "h" for hours, etc.) in the various time interval directives is new in CUPS 1.6/OS X 10.8. Prior releases of CUPS only supported time intervals in seconds.</P> |
82cc1f9a MS |
48 | |
49 | </BLOCKQUOTE> | |
50 | ||
ef416fc2 | 51 | |
1f0275e3 MS |
52 | <H2 CLASS="title"><A NAME="AccessLogLevel">AccessLogLevel</A></H2> |
53 | ||
54 | <H3>Examples</H3> | |
55 | ||
56 | <PRE CLASS="command"> | |
57 | AccessLogLevel config | |
58 | AccessLogLevel actions | |
59 | AccessLogLevel all | |
60 | </PRE> | |
61 | ||
62 | <H3>Description</H3> | |
63 | ||
64 | <P>The <CODE>AccessLogLevel</CODE> directive controls which requests are logged | |
65 | to the access log file. The following levels are defined:</P> | |
66 | ||
67 | <UL> | |
68 | ||
69 | <LI><CODE>config</CODE>; Log when printers and classes are added, | |
70 | deleted, or modified and when configuration files are accessed or | |
71 | updated.</LI> | |
72 | ||
73 | <LI><CODE>actions</CODE>; Log when print jobs are submitted, | |
74 | held, released, modified, or canceled, and any of the conditions | |
75 | for <CODE>config</CODE>.</LI> | |
76 | ||
77 | <LI><CODE>all</CODE>; Log all requests.</LI> | |
78 | ||
79 | </UL> | |
80 | ||
81 | <P>The default access log level is <CODE>@CUPS_ACCESS_LOG_LEVEL@</CODE>.</P> | |
82 | ||
83 | ||
480ef0fe | 84 | <H2 CLASS="title"><A NAME="Allow">Allow</A></H2> |
ef416fc2 | 85 | |
480ef0fe | 86 | <H3>Examples</H3> |
ef416fc2 | 87 | |
88 | <PRE CLASS="command"> | |
480ef0fe | 89 | <Location /path> |
90 | ... | |
91 | Allow from All | |
92 | Allow from None | |
eac3a0a0 MS |
93 | Allow from *.example.com |
94 | Allow from .example.com | |
95 | Allow from host.example.com | |
480ef0fe | 96 | Allow from nnn.* |
97 | Allow from nnn.nnn.* | |
98 | Allow from nnn.nnn.nnn.* | |
99 | Allow from nnn.nnn.nnn.nnn | |
100 | Allow from nnn.nnn.nnn.nnn/mm | |
101 | Allow from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm | |
5a662dc0 MS |
102 | Allow from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx] |
103 | Allow from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/mmm | |
480ef0fe | 104 | Allow from @LOCAL |
105 | Allow from @IF(name) | |
106 | </Location> | |
ef416fc2 | 107 | </PRE> |
108 | ||
480ef0fe | 109 | <H3>Description</H3> |
ef416fc2 | 110 | |
480ef0fe | 111 | <P>The <CODE>Allow</CODE> directive specifies a hostname, IP |
eac3a0a0 MS |
112 | address, or network that is allowed access to the server. |
113 | <CODE>Allow</CODE> directives are cumulative, so multiple | |
480ef0fe | 114 | <CODE>Allow</CODE> directives can be used to allow access for |
f701418f MS |
115 | multiple hosts or networks.</P> |
116 | ||
117 | <P>Host and domain name matching require that you enable the <A | |
118 | HREF="#HostNameLookups"><CODE>HostNameLookups</CODE></A> | |
119 | directive.</P> | |
120 | ||
121 | <P>The <CODE>/mm</CODE> notation specifies a CIDR netmask, as shown in | |
122 | <A HREF="#TABLE1">Table 1</A>.</P> | |
ef416fc2 | 123 | |
480ef0fe | 124 | <DIV CLASS="table"><TABLE SUMMARY="CIDR Netmasks"> |
125 | <CAPTION>Table 1: <A NAME="TABLE1">CIDR Netmasks</A></CAPTION> | |
ef416fc2 | 126 | <TR> |
127 | <TH WIDTH="10%">mm</TH> | |
128 | <TH WIDTH="20%">netmask</TH> | |
129 | <TH WIDTH="10%">mm</TH> | |
130 | <TH WIDTH="20%">netmask</TH> | |
131 | </TR> | |
132 | <TR> | |
133 | <TD ALIGN="CENTER">0</TD> | |
134 | <TD ALIGN="CENTER">0.0.0.0</TD> | |
135 | <TD ALIGN="CENTER">8</TD> | |
136 | <TD ALIGN="CENTER">255.0.0.0</TD> | |
137 | </TR> | |
138 | <TR> | |
139 | <TD ALIGN="CENTER">1</TD> | |
140 | <TD ALIGN="CENTER">128.0.0.0</TD> | |
141 | <TD ALIGN="CENTER">16</TD> | |
142 | <TD ALIGN="CENTER">255.255.0.0</TD> | |
143 | </TR> | |
144 | <TR> | |
145 | <TD ALIGN="CENTER">2</TD> | |
146 | <TD ALIGN="CENTER">192.0.0.0</TD> | |
147 | <TD ALIGN="CENTER">24</TD> | |
148 | <TD ALIGN="CENTER">255.255.255.0</TD> | |
149 | </TR> | |
150 | <TR> | |
151 | <TD ALIGN="CENTER">...</TD> | |
152 | <TD ALIGN="CENTER">...</TD> | |
153 | <TD ALIGN="CENTER">32</TD> | |
154 | <TD ALIGN="CENTER">255.255.255.255</TD> | |
155 | </TR> | |
156 | </TABLE></DIV> | |
157 | ||
158 | <P>The <CODE>@LOCAL</CODE> name will allow access from all local | |
159 | interfaces. The <CODE>@IF(name)</CODE> name will allow access | |
2abf387c | 160 | from the named interface. In both cases, CUPS only allows access |
161 | from the network that the interface(s) are configured for - | |
162 | requests arriving on the interface from a foreign network will | |
163 | <em>not</em> be accepted.</P> | |
ef416fc2 | 164 | |
165 | <P>The <CODE>Allow</CODE> directive must appear inside a <A | |
480ef0fe | 166 | HREF="#Location"><CODE>Location</CODE></A> or <A |
167 | HREF="#Limit"><CODE>Limit</CODE></A> section.</P> | |
ef416fc2 | 168 | |
169 | ||
480ef0fe | 170 | <H2 CLASS="title"><A NAME="AuthType">AuthType</A></H2> |
ef416fc2 | 171 | |
480ef0fe | 172 | <H3>Examples</H3> |
ef416fc2 | 173 | |
174 | <PRE CLASS="command"> | |
480ef0fe | 175 | <Location /path> |
176 | ... | |
177 | AuthType None | |
178 | AuthType Basic | |
179 | AuthType Digest | |
180 | AuthType BasicDigest | |
f7deaa1a | 181 | AuthType Negotiate |
480ef0fe | 182 | </Location> |
ef416fc2 | 183 | </PRE> |
184 | ||
480ef0fe | 185 | <H3>Description</H3> |
ef416fc2 | 186 | |
187 | <P>The <CODE>AuthType</CODE> directive defines the type of | |
188 | authentication to perform:</P> | |
189 | ||
190 | <UL> | |
191 | ||
192 | <LI><CODE>None</CODE> - No authentication should be | |
193 | performed (default)</LI> | |
194 | ||
195 | <LI><CODE>Basic</CODE> - Basic authentication should be | |
196 | performed using the UNIX password and group files</LI> | |
197 | ||
198 | <LI><CODE>Digest</CODE> - Digest authentication should be | |
199 | performed using the <VAR>/etc/cups/passwd.md5</VAR> | |
200 | file</LI> | |
201 | ||
202 | <LI><CODE>BasicDigest</CODE> - Basic authentication | |
203 | should be performed using the | |
204 | <VAR>/etc/cups/passwd.md5</VAR> file</LI> | |
205 | ||
f7deaa1a | 206 | <LI><CODE>Negotiate</CODE> - Kerberos authentication |
207 | should be performed</LI> | |
208 | ||
ef416fc2 | 209 | </UL> |
210 | ||
f7deaa1a | 211 | <P>When using <CODE>Basic</CODE>, <CODE>Digest</CODE>, |
212 | <CODE>BasicDigest</CODE>, or <CODE>Negotiate</CODE> authentication, | |
213 | clients connecting through the <CODE>localhost</CODE> interface can | |
214 | also authenticate using certificates.</P> | |
ef416fc2 | 215 | |
216 | <P>The <CODE>AuthType</CODE> directive must appear inside a <A | |
480ef0fe | 217 | HREF="#Location"><CODE>Location</CODE></A> or <A |
218 | HREF="#Limit"><CODE>Limit</CODE></A> section.</P> | |
ef416fc2 | 219 | |
220 | ||
480ef0fe | 221 | <H2 CLASS="title"><A NAME="AutoPurgeJobs">AutoPurgeJobs</A></H2> |
ef416fc2 | 222 | |
480ef0fe | 223 | <H3>Examples</H3> |
ef416fc2 | 224 | |
225 | <PRE CLASS="command"> | |
226 | AutoPurgeJobs Yes | |
227 | AutoPurgeJobs No | |
228 | </PRE> | |
229 | ||
480ef0fe | 230 | <H3>Description</H3> |
ef416fc2 | 231 | |
232 | <P>The <CODE>AutoPurgeJobs</CODE> directive specifies whether or | |
233 | not to purge completed jobs once they are no longer required for | |
234 | quotas. This option has no effect if quotas are not enabled. The | |
235 | default setting is <CODE>No</CODE>.</P> | |
236 | ||
237 | ||
f3c17241 | 238 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="BrowseLocalProtocols">BrowseLocalProtocols</A></H2> |
480ef0fe | 239 | |
240 | <H3>Examples</H3> | |
241 | ||
242 | <PRE CLASS="command"> | |
243 | BrowseLocalProtocols all | |
244 | BrowseLocalProtocols none | |
a41f09e2 | 245 | BrowseLocalProtocols dnssd |
480ef0fe | 246 | </PRE> |
247 | ||
248 | <H3>Description</H3> | |
249 | ||
ffa2ca90 | 250 | <P>The <CODE>BrowseLocalProtocols</CODE> directive specifies the protocols to use when advertising local shared printers on the network. Multiple protocols can be specified by separating them with spaces. The default is "<CODE>dnssd</CODE>" on systems that support Bonjour and "<CODE>none</CODE>" on all others.</P> |
480ef0fe | 251 | |
252 | ||
b19ccc9e MS |
253 | <H2 CLASS="title"><A NAME="BrowseWebIF">BrowseWebIF</A></H2> |
254 | ||
255 | <H3>Examples</H3> | |
256 | ||
257 | <PRE CLASS="command"> | |
258 | BrowseWebIF On | |
259 | BrowseWebIF Off | |
260 | </PRE> | |
261 | ||
262 | <H3>Description</H3> | |
263 | ||
264 | <P>The <CODE>BrowseWebIF</CODE> directive controls whether the CUPS web | |
265 | interface is advertised via DNS-SD. The default setting is | |
266 | <CODE>Off</CODE>.</P> | |
267 | ||
268 | ||
480ef0fe | 269 | <H2 CLASS="title"><A NAME="Browsing">Browsing</A></H2> |
ef416fc2 | 270 | |
480ef0fe | 271 | <H3>Examples</H3> |
ef416fc2 | 272 | |
273 | <PRE CLASS="command"> | |
274 | Browsing On | |
275 | Browsing Off | |
276 | </PRE> | |
277 | ||
480ef0fe | 278 | <H3>Description</H3> |
ef416fc2 | 279 | |
ffa2ca90 | 280 | <P>The <CODE>Browsing</CODE> directive controls whether or not printer sharing is enabled. The default setting is <CODE>On</CODE>.</P> |
ef416fc2 | 281 | |
ef416fc2 | 282 | |
480ef0fe | 283 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Classification">Classification</A></H2> |
ef416fc2 | 284 | |
480ef0fe | 285 | <H3>Examples</H3> |
ef416fc2 | 286 | |
287 | <PRE CLASS="command"> | |
288 | Classification | |
289 | Classification classified | |
290 | Classification confidential | |
291 | Classification secret | |
292 | Classification topsecret | |
293 | Classification unclassified | |
294 | </PRE> | |
295 | ||
480ef0fe | 296 | <H3>Description</H3> |
ef416fc2 | 297 | |
298 | <P>The <CODE>Classification</CODE> directive sets the | |
299 | classification level on the server. When this option is set, at | |
300 | least one of the banner pages is forced to the classification | |
301 | level, and the classification is placed on each page of output. | |
302 | The default is no classification level.</P> | |
303 | ||
304 | ||
480ef0fe | 305 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.10</SPAN><A NAME="ClassifyOverride">ClassifyOverride</A></H2> |
ef416fc2 | 306 | |
480ef0fe | 307 | <H3>Examples</H3> |
ef416fc2 | 308 | |
309 | <PRE CLASS="command"> | |
310 | ClassifyOverride Yes | |
311 | ClassifyOverride No | |
312 | </PRE> | |
313 | ||
480ef0fe | 314 | <H3>Description</H3> |
ef416fc2 | 315 | |
316 | <P>The <CODE>ClassifyOverride</CODE> directive specifies whether | |
317 | users can override the default classification level on the | |
318 | server. When the server classification is set, users can change | |
319 | the classification using the <CODE>job-sheets</CODE> option and | |
320 | can choose to only print one security banner before or after the | |
321 | job. If the <CODE>job-sheets</CODE> option is set to | |
322 | <CODE>none</CODE> then the server default classification is | |
323 | used.</P> | |
324 | ||
325 | <P>The default is to not allow classification overrides.</P> | |
326 | ||
327 | ||
f3c17241 | 328 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="DefaultAuthType">DefaultAuthType</A></H2> |
480ef0fe | 329 | |
330 | <H3>Examples</H3> | |
331 | ||
332 | <PRE CLASS="command"> | |
333 | DefaultAuthType Basic | |
334 | DefaultAuthType BasicDigest | |
335 | DefaultAuthType Digest | |
f7deaa1a | 336 | DefaultAuthType Negotiate |
480ef0fe | 337 | </PRE> |
338 | ||
339 | <H3>Description</H3> | |
340 | ||
341 | <P>The <CODE>DefaultAuthType</CODE> directive specifies the type | |
342 | of authentication to use for IPP operations that require a | |
343 | username. The default is <CODE>Basic</CODE>.</P> | |
ef416fc2 | 344 | |
480ef0fe | 345 | |
f3c17241 | 346 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="DefaultEncryption">DefaultEncryption</A></H2> |
480ef0fe | 347 | |
348 | <H3>Examples</H3> | |
349 | ||
350 | <PRE CLASS="command"> | |
351 | DefaultEncryption Never | |
352 | DefaultEncryption IfRequested | |
353 | DefaultEncryption Required | |
354 | </PRE> | |
355 | ||
356 | <H3>Description</H3> | |
357 | ||
358 | <P>The <CODE>DefaultEncryption</CODE> directive specifies the | |
359 | type of encryption to use when performing authentication. The | |
360 | default is <CODE>Required</CODE>.</P> | |
361 | ||
ef416fc2 | 362 | |
480ef0fe | 363 | <H2 CLASS="title"><A NAME="DefaultLanguage">DefaultLanguage</A></H2> |
364 | ||
365 | <H3>Examples</H3> | |
ef416fc2 | 366 | |
367 | <PRE CLASS="command"> | |
368 | DefaultLanguage de | |
369 | DefaultLanguage en | |
370 | DefaultLanguage es | |
371 | DefaultLanguage fr | |
372 | DefaultLanguage it | |
373 | </PRE> | |
374 | ||
480ef0fe | 375 | <H3>Description</H3> |
ef416fc2 | 376 | |
377 | <P>The <CODE>DefaultLanguage</CODE> directive specifies the | |
378 | default language to use for client connections. Setting the | |
379 | default language also sets the default character set if a | |
380 | language localization file exists for it. The default language | |
381 | is "en" for English.</P> | |
382 | ||
383 | ||
f3c17241 | 384 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/OS X 10.6</SPAN><A NAME="DefaultPaperSize">DefaultPaperSize</A></H2> |
49d87452 MS |
385 | |
386 | <H3>Examples</H3> | |
387 | ||
388 | <PRE CLASS="command"> | |
389 | DefaultPaperSize Letter | |
390 | DefaultPaperSize A4 | |
391 | DefaultPaperSize Auto | |
392 | DefaultPaperSize None | |
393 | </PRE> | |
394 | ||
395 | <H3>Description</H3> | |
396 | ||
397 | <P>The <CODE>DefaultPaperSize</CODE> directive specifies the default paper | |
398 | size to use when creating new printers. The default is <CODE>Auto</CODE> | |
399 | which uses a paper size appropriate for the system default locale. A value | |
400 | of <CODE>None</CODE> tells the scheduler to not set the default paper | |
401 | size.</P> | |
402 | ||
403 | ||
f3c17241 | 404 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="DefaultPolicy">DefaultPolicy</A></H2> |
480ef0fe | 405 | |
406 | <H3>Examples</H3> | |
407 | ||
408 | <PRE CLASS="command"> | |
409 | DefaultPolicy default | |
0268488e | 410 | DefaultPolicy authenticated |
480ef0fe | 411 | DefaultPolicy foo |
412 | </PRE> | |
413 | ||
414 | <H3>Description</H3> | |
415 | ||
416 | <P>The <CODE>DefaultPolicy</CODE> directive specifies the default | |
417 | policy to use for IPP operation. The default is | |
0268488e MS |
418 | <CODE>default</CODE>. CUPS also includes a policy called |
419 | <CODE>authenticated</CODE> that requires a username and password for printing | |
420 | and other job operations.</P> | |
480ef0fe | 421 | |
422 | ||
f3c17241 | 423 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="DefaultShared">DefaultShared</A></H2> |
a74454a7 | 424 | |
425 | <H3>Examples</H3> | |
426 | ||
427 | <PRE CLASS="command"> | |
ffa2ca90 MS |
428 | DefaultShared Yes |
429 | DefaultShared No | |
a74454a7 | 430 | </PRE> |
431 | ||
432 | <H3>Description</H3> | |
433 | ||
ffa2ca90 | 434 | <P>The <CODE>DefaultShared</CODE> directive specifies whether printers are shared (published) by default. The default is <CODE>Yes</CODE>.</P> |
a74454a7 | 435 | |
436 | ||
480ef0fe | 437 | <H2 CLASS="title"><A NAME="Deny">Deny</A></H2> |
ef416fc2 | 438 | |
480ef0fe | 439 | <H3>Examples</H3> |
ef416fc2 | 440 | |
441 | <PRE CLASS="command"> | |
480ef0fe | 442 | <Location /path> |
443 | .. | |
444 | Deny from All | |
445 | Deny from None | |
eac3a0a0 MS |
446 | Deny from *.example.com |
447 | Deny from .example.com | |
448 | Deny from host.example.com | |
480ef0fe | 449 | Deny from nnn.* |
450 | Deny from nnn.nnn.* | |
451 | Deny from nnn.nnn.nnn.* | |
452 | Deny from nnn.nnn.nnn.nnn | |
453 | Deny from nnn.nnn.nnn.nnn/mm | |
454 | Deny from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm | |
5a662dc0 MS |
455 | Deny from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx] |
456 | Deny from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/mmm | |
480ef0fe | 457 | Deny from @LOCAL |
458 | Deny from @IF(name) | |
459 | </Location> | |
ef416fc2 | 460 | </PRE> |
461 | ||
480ef0fe | 462 | <H3>Description</H3> |
ef416fc2 | 463 | |
464 | <P>The <CODE>Deny</CODE> directive specifies a hostname, IP | |
dd1abb6b | 465 | address, or network that is denied access to the server. |
eac3a0a0 | 466 | <CODE>Deny</CODE> directives are cumulative, so multiple |
0268488e | 467 | <CODE>Deny</CODE> directives can be used to deny access for |
f701418f MS |
468 | multiple hosts or networks.</P> |
469 | ||
470 | <P>Host and domain name matching require that you enable the <A | |
471 | HREF="#HostNameLookups"><CODE>HostNameLookups</CODE></A> | |
472 | directive.</P> | |
473 | ||
474 | <P>The <CODE>/mm</CODE> notation specifies a CIDR netmask, a shown in | |
475 | <A HREF="TABLE1">Table 1</A>.</P> | |
ef416fc2 | 476 | |
477 | <P>The <CODE>@LOCAL</CODE> name will deny access from all local | |
478 | interfaces. The <CODE>@IF(name)</CODE> name will deny access from | |
2abf387c | 479 | the named interface. In both cases, CUPS only denies access from |
480 | the network that the interface(s) are configured for - requests | |
481 | arriving on the interface from a foreign network will | |
482 | <em>not</em> be denied.</P> | |
ef416fc2 | 483 | |
484 | <P>The <CODE>Deny</CODE> directive must appear inside a <A | |
480ef0fe | 485 | HREF="#Location"><CODE>Location</CODE></A> or <A |
486 | HREF="#Limit"><CODE>Limit</CODE></A> section.</P> | |
ef416fc2 | 487 | |
488 | ||
f3c17241 | 489 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/OS X 10.6</SPAN><A NAME="DirtyCleanInterval">DirtyCleanInterval</A></H2> |
3dfe78b3 MS |
490 | |
491 | <H3>Examples</H3> | |
492 | ||
493 | <PRE CLASS="command"> | |
82cc1f9a MS |
494 | DirtyCleanInterval 1w |
495 | DirtyCleanInterval 1d | |
496 | DirtyCleanInterval 1h | |
497 | DirtyCleanInterval 1m | |
49d87452 | 498 | DirtyCleanInterval 30 |
3dfe78b3 MS |
499 | DirtyCleanInterval 0 |
500 | </PRE> | |
501 | ||
502 | <H3>Description</H3> | |
503 | ||
82cc1f9a MS |
504 | <P>The <CODE>DirtyCleanInterval</CODE> directive specifies the amount of time to wait before updating configuration and state files for printers, classes, subscriptions, and jobs in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix). A value of <CODE>0</CODE> causes the update to occur as soon as possible, typically within a few milliseconds.</P> |
505 | ||
506 | <P>The default value is <CODE>30</CODE> (30 seconds).</P> | |
3dfe78b3 MS |
507 | |
508 | ||
480ef0fe | 509 | <H2 CLASS="title"><A NAME="Encryption">Encryption</A></H2> |
ef416fc2 | 510 | |
480ef0fe | 511 | <H3>Examples</H3> |
ef416fc2 | 512 | |
513 | <PRE CLASS="command"> | |
480ef0fe | 514 | <Location /path> |
515 | ... | |
516 | Encryption Never | |
517 | Encryption IfRequested | |
518 | Encryption Required | |
519 | </Location> | |
ef416fc2 | 520 | </PRE> |
521 | ||
480ef0fe | 522 | <H3>Description</H3> |
ef416fc2 | 523 | |
524 | <P>The <CODE>Encryption</CODE> directive must appear instead a <A | |
480ef0fe | 525 | HREF="#Location"><CODE>Location</CODE></A> or <A |
526 | HREF="#Limit"><CODE>Limit</CODE></A> section and specifies the | |
527 | encryption settings for that location. The default setting is | |
ef416fc2 | 528 | <CODE>IfRequested</CODE> for all locations.</P> |
529 | ||
530 | ||
f3c17241 | 531 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.3/OS X 10.5</SPAN><A NAME="ErrorPolicy">ErrorPolicy</A></H2> |
323c5de1 | 532 | |
533 | <H3>Examples</H3> | |
534 | ||
535 | <PRE CLASS="command"> | |
536 | ErrorPolicy abort-job | |
537 | ErrorPolicy retry-job | |
538 | ErrorPolicy stop-printer | |
539 | </PRE> | |
540 | ||
541 | <H3>Description</H3> | |
542 | ||
543 | <P>The <CODE>ErrorPolicy</CODE> directive defines the default policy that | |
544 | is used when a backend is unable to send a print job to the | |
545 | printer.</P> | |
546 | ||
547 | <P>The following values are supported:</P> | |
548 | ||
549 | <UL> | |
550 | ||
551 | <LI><CODE>abort-job</CODE> - Abort the job and proceed | |
552 | with the next job in the queue</LI> | |
553 | ||
554 | <LI><CODE>retry-job</CODE> - Retry the job after waiting | |
555 | for N seconds; the <VAR>cupsd.conf</VAR> <A | |
556 | HREF="#JobRetryInterval"><CODE>JobRetryInterval</CODE></A> | |
557 | directive controls the value of N</LI> | |
558 | ||
238c3832 MS |
559 | <LI><CODE>retry-this-job</CODE> - Retry the current job immediately |
560 | and indefinitely.</LI> | |
561 | ||
323c5de1 | 562 | <LI><CODE>stop-printer</CODE> - Stop the printer and keep |
563 | the job for future printing; this is the default | |
564 | value</LI> | |
565 | ||
566 | </UL> | |
567 | ||
568 | ||
480ef0fe | 569 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="FilterLimit">FilterLimit</A></H2> |
ef416fc2 | 570 | |
480ef0fe | 571 | <H3>Examples</H3> |
ef416fc2 | 572 | |
573 | <PRE CLASS="command"> | |
574 | FilterLimit 0 | |
575 | FilterLimit 200 | |
576 | FilterLimit 1000 | |
577 | </PRE> | |
578 | ||
480ef0fe | 579 | <H3>Description</H3> |
ef416fc2 | 580 | |
581 | <P>The <CODE>FilterLimit</CODE> directive sets the maximum cost | |
582 | of all running job filters. It can be used to limit the number of | |
583 | filter programs that are run on a server to minimize disk, | |
584 | memory, and CPU resource problems. A limit of 0 disables filter | |
585 | limiting.</P> | |
586 | ||
587 | <P>An average print to a non-PostScript printer needs a filter | |
588 | limit of about 200. A PostScript printer needs about half that | |
589 | (100). Setting the limit below these thresholds will effectively | |
590 | limit the scheduler to printing a single job at any time.</P> | |
591 | ||
592 | <P>The default limit is 0.</P> | |
593 | ||
594 | ||
480ef0fe | 595 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.16</SPAN><A NAME="FilterNice">FilterNice</A></H2> |
596 | ||
597 | <H3>Examples</H3> | |
598 | ||
599 | <PRE CLASS="command"> | |
600 | FilterNice 0 | |
601 | FilterNice 10 | |
602 | FilterNice 19 | |
603 | </PRE> | |
604 | ||
605 | <H3>Description</H3> | |
606 | ||
607 | <P>The <CODE>FilterNice</CODE> directive sets the <B>nice(1)</B> | |
608 | value to assign to filter processes. The nice value ranges from | |
609 | 0, the highest priority, to 19, the lowest priority. The default | |
610 | is 0.</P> | |
611 | ||
612 | ||
f3c17241 | 613 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.6/OS X 10.8</SPAN><A NAME="GSSServiceName">GSSServiceName</A></H2> |
dcb445bc MS |
614 | |
615 | <H3>Examples</H3> | |
616 | ||
617 | <PRE CLASS="command"> | |
618 | GSSServiceName http | |
619 | GSSServiceName ipp | |
620 | </PRE> | |
621 | ||
622 | <H3>Description</H3> | |
623 | ||
ffa2ca90 | 624 | <P>The <CODE>GSSServiceName</CODE> directive sets the Kerberos service name to use. The default is <CODE>http</CODE> for compatibility with Microsoft Windows.</P> |
dcb445bc MS |
625 | |
626 | ||
480ef0fe | 627 | <H2 CLASS="title"><A NAME="HostNameLookups">HostNameLookups</A></H2> |
ef416fc2 | 628 | |
480ef0fe | 629 | <H3>Examples</H3> |
ef416fc2 | 630 | |
631 | <PRE CLASS="command"> | |
632 | HostNameLookups On | |
633 | HostNameLookups Off | |
634 | HostNameLookups Double | |
635 | </PRE> | |
636 | ||
480ef0fe | 637 | <H3>Description</H3> |
ef416fc2 | 638 | |
639 | <P>The <CODE>HostNameLookups</CODE> directive controls whether or | |
640 | not CUPS looks up the hostname for connecting clients. The | |
641 | <CODE>Double</CODE> setting causes CUPS to verify that the | |
642 | hostname resolved from the address matches one of the addresses | |
643 | returned for that hostname. <CODE>Double</CODE> lookups also | |
644 | prevent clients with unregistered addresses from connecting to | |
645 | your server.</P> | |
646 | ||
647 | <P>The default is <CODE>Off</CODE> to avoid the potential server | |
648 | performance problems with hostname lookups. Set this option to | |
649 | <CODE>On</CODE> or <CODE>Double</CODE> only if absolutely | |
650 | required.</P> | |
651 | ||
652 | ||
480ef0fe | 653 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.9</SPAN><A NAME="Include">Include</A></H2> |
ef416fc2 | 654 | |
480ef0fe | 655 | <H3>Examples</H3> |
ef416fc2 | 656 | |
657 | <PRE CLASS="command"> | |
658 | Include filename | |
659 | Include /foo/bar/filename | |
660 | </PRE> | |
661 | ||
480ef0fe | 662 | <H3>Description</H3> |
ef416fc2 | 663 | |
664 | <P>The <CODE>Include</CODE> directive includes the named file in | |
665 | the <CODE>cupsd.conf</CODE> file. If no leading path is provided, | |
666 | the file is assumed to be relative to the <A | |
cb7f98ee | 667 | HREF="ref-cups-files-conf.html#ServerRoot"><CODE>ServerRoot</CODE></A> directory.</P> |
ef416fc2 | 668 | |
669 | ||
10d09e33 MS |
670 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="JobPrivateAccess">JobPrivateAccess</A></H2> |
671 | ||
672 | <H3>Examples</H3> | |
673 | ||
674 | <PRE CLASS="command"> | |
675 | JobPrivateAccess all | |
676 | JobPrivateAccess default | |
677 | JobPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM}+ | |
678 | </PRE> | |
679 | ||
680 | <H3>Description</H3> | |
681 | ||
682 | <P>The <CODE>JobPrivateAccess</CODE> directive specifies the access list for a | |
683 | job's private values. The "default" access list is "@OWNER @SYSTEM". "@ACL" maps | |
684 | to the printer's requesting-user-name-allowed or requesting-user-name-denied | |
685 | values.</P> | |
686 | ||
687 | <P>The <CODE>JobPrivateAccess</CODE> directive must appear inside a <A | |
688 | HREF="#Policy"><CODE>Policy</CODE></A> section.</P> | |
689 | ||
690 | ||
691 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="JobPrivateValues">JobPrivateValues</A></H2> | |
692 | ||
693 | <H3>Examples</H3> | |
694 | ||
695 | <PRE CLASS="command"> | |
696 | JobPrivateValues all | |
697 | JobPrivateValues default | |
698 | JobPrivateValues none | |
699 | JobPrivateValues attribute-name-1 [ ... attribute-name-N ] | |
700 | </PRE> | |
701 | ||
702 | <H3>Description</H3> | |
703 | ||
704 | <P>The <CODE>JobPrivateValues</CODE> directive specifies the list of job values | |
705 | to make private. The "default" values are "job-name", | |
82cc1f9a | 706 | "job-originating-host-name", "job-originating-user-name", and "phone".</P> |
10d09e33 MS |
707 | |
708 | <P>The <CODE>JobPrivateValues</CODE> directive must appear inside a <A | |
709 | HREF="#Policy"><CODE>Policy</CODE></A> section.</P> | |
710 | ||
711 | ||
f3c17241 | 712 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="JobRetryInterval">JobRetryInterval</A></H2> |
480ef0fe | 713 | |
714 | <H3>Examples</H3> | |
715 | ||
716 | <PRE CLASS="command"> | |
82cc1f9a MS |
717 | JobRetryInterval 1w |
718 | JobRetryInterval 1d | |
719 | JobRetryInterval 1h | |
720 | JobRetryInterval 1m | |
480ef0fe | 721 | JobRetryInterval 30 |
480ef0fe | 722 | </PRE> |
723 | ||
724 | <H3>Description</H3> | |
725 | ||
82cc1f9a MS |
726 | <P>The <CODE>JobRetryInterval</CODE> directive specifies the amount of time to wait before retrying a job in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix). This is typically used for fax queues but can also be used with normal print queues whose error policy is <CODE>retry-job</CODE> or <CODE>retry-current-job</CODE>.</P> |
727 | ||
728 | <P>The default is <CODE>30</CODE> (30 seconds).</P> | |
ef416fc2 | 729 | |
480ef0fe | 730 | |
f3c17241 | 731 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/OS X 10.6</SPAN><A NAME="JobKillDelay">JobKillDelay</A></H2> |
238c3832 MS |
732 | |
733 | <H3>Examples</H3> | |
734 | ||
735 | <PRE CLASS="command"> | |
82cc1f9a MS |
736 | JobKillDelay 1w |
737 | JobKillDelay 1d | |
738 | JobKillDelay 1h | |
739 | JobKillDelay 1m | |
238c3832 | 740 | JobKillDelay 30 |
238c3832 MS |
741 | </PRE> |
742 | ||
743 | <H3>Description</H3> | |
744 | ||
82cc1f9a MS |
745 | <P>The <CODE>JobKillDelay</CODE> directive specifies the amount of time to wait before killing the filters and backend associated with a canceled or held job in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
746 | ||
747 | <P>The default is <CODE>30</CODE> (30 seconds).</P> | |
238c3832 MS |
748 | |
749 | ||
f3c17241 | 750 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="JobRetryLimit">JobRetryLimit</A></H2> |
480ef0fe | 751 | |
752 | <H3>Examples</H3> | |
753 | ||
754 | <PRE CLASS="command"> | |
755 | JobRetryLimit 5 | |
756 | JobRetryLimit 50 | |
757 | </PRE> | |
758 | ||
759 | <H3>Description</H3> | |
760 | ||
761 | <P>The <CODE>JobRetryLimit</CODE> directive specifies the maximum | |
762 | number of times the scheduler will try to print a job. This is | |
763 | typically used for fax queues but can also be used with normal | |
764 | print queues whose error policy is <CODE>retry-job</CODE>. The | |
765 | default is 5 times.</P> | |
766 | ||
767 | ||
768 | <H2 CLASS="title"><A NAME="KeepAlive">KeepAlive</A></H2> | |
769 | ||
770 | <H3>Examples</H3> | |
ef416fc2 | 771 | |
772 | <PRE CLASS="command"> | |
773 | KeepAlive On | |
774 | KeepAlive Off | |
775 | </PRE> | |
776 | ||
480ef0fe | 777 | <H3>Description</H3> |
ef416fc2 | 778 | |
779 | <P>The <CODE>KeepAlive</CODE> directive controls whether or not | |
780 | to support persistent HTTP connections. The default is | |
781 | <CODE>On</CODE>.</P> | |
782 | ||
783 | <P>HTTP/1.1 clients automatically support persistent connections, | |
784 | while HTTP/1.0 clients must specifically request them using the | |
785 | <CODE>Keep-Alive</CODE> attribute in the <CODE>Connection:</CODE> | |
786 | field of each request.</P> | |
787 | ||
788 | ||
480ef0fe | 789 | <H2 CLASS="title"><A NAME="KeepAliveTimeout">KeepAliveTimeout</A></H2> |
ef416fc2 | 790 | |
480ef0fe | 791 | <H3>Examples</H3> |
ef416fc2 | 792 | |
793 | <PRE CLASS="command"> | |
82cc1f9a MS |
794 | KeepAliveTimeout 1w |
795 | KeepAliveTimeout 1d | |
796 | KeepAliveTimeout 1h | |
797 | KeepAliveTimeout 1m | |
ef416fc2 | 798 | KeepAliveTimeout 30 |
799 | </PRE> | |
800 | ||
480ef0fe | 801 | <H3>Description</H3> |
ef416fc2 | 802 | |
82cc1f9a MS |
803 | <P>The <CODE>KeepAliveTimeout</CODE> directive controls how long a persistent HTTP connection will remain open after the last request in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
804 | ||
805 | <P>The default is <CODE>30</CODE> (30 seconds).</P> | |
ef416fc2 | 806 | |
807 | ||
480ef0fe | 808 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Limit">Limit (Location)</A></H2> |
ef416fc2 | 809 | |
480ef0fe | 810 | <H3>Examples</H3> |
ef416fc2 | 811 | |
812 | <PRE CLASS="command"> | |
480ef0fe | 813 | <Location /path> |
814 | <Limit GET POST> | |
815 | ... | |
816 | </Limit> | |
ef416fc2 | 817 | |
480ef0fe | 818 | <Limit ALL> |
819 | ... | |
820 | </Limit> | |
821 | </Location> | |
ef416fc2 | 822 | </PRE> |
823 | ||
480ef0fe | 824 | <H3>Description</H3> |
ef416fc2 | 825 | |
826 | <P>The <CODE>Limit</CODE> directive groups access control | |
827 | directives for specific types of HTTP requests and must appear | |
828 | inside a <A HREF="#Location"><CODE>Location</CODE></A> section. | |
829 | Access can be limited for individual request types | |
830 | (<CODE>DELETE</CODE>, <CODE>GET</CODE>, <CODE>HEAD</CODE>, | |
831 | <CODE>OPTIONS</CODE>, <CODE>POST</CODE>, <CODE>PUT</CODE>, and | |
832 | <CODE>TRACE</CODE>) or for all request types (<CODE>ALL</CODE>). | |
833 | The request type names are case-sensitive for compatibility with | |
834 | Apache.</P> | |
835 | ||
836 | ||
f3c17241 | 837 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="LimitIPP">Limit (Policy)</A></H2> |
ef416fc2 | 838 | |
480ef0fe | 839 | <H3>Examples</H3> |
ef416fc2 | 840 | |
841 | <PRE CLASS="command"> | |
480ef0fe | 842 | <Policy name> |
843 | <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer> | |
844 | ... | |
845 | </Limit> | |
846 | ||
847 | <Limit All> | |
848 | ... | |
849 | </Limit> | |
850 | </Policy> | |
851 | </PRE> | |
852 | ||
853 | <H3>Description</H3> | |
854 | ||
855 | <P>When included in <A HREF="#Policy"><CODE>Policy</CODE></A> | |
856 | sections, the <CODE>Limit</CODE> directive groups access control | |
857 | directives for specific IPP operations. Multiple operations can | |
858 | be listed, separated by spaces. Table 2 lists the supported | |
859 | operations.</P> | |
860 | ||
861 | <DIV CLASS="table"><TABLE SUMMARY="Supported IPP Operations"> | |
862 | <CAPTION>Table 2: <A NAME="TABLE2">Supported IPP Operations</A></CAPTION> | |
863 | <THEAD> | |
864 | <TR> | |
865 | <TH>Operation Name</TH> | |
866 | <TH>Description</TH> | |
867 | </TR> | |
868 | </THEAD> | |
869 | <TBODY> | |
870 | <TR> | |
871 | <TD>All</TD> | |
872 | <TD>All operations - used as the default limit for | |
873 | operations that are not listed</TD> | |
874 | </TR> | |
875 | <TR> | |
876 | <TD>Cancel-Job</TD> | |
877 | <TD>Cancel a job</TD> | |
878 | </TR> | |
879 | <TR> | |
880 | <TD>Cancel-Subscription</TD> | |
881 | <TD>Cancel a subscription</TD> | |
882 | </TR> | |
883 | <TR> | |
884 | <TD>Create-Job</TD> | |
885 | <TD>Create a new, empty job</TD> | |
886 | </TR> | |
887 | <TR> | |
888 | <TD>Create-Job-Subscription</TD> | |
889 | <TD>Creates a notification subscription on a job</TD> | |
890 | </TR> | |
891 | <TR> | |
892 | <TD>Create-Printer-Subscription</TD> | |
893 | <TD>Creates a notification subscription on a printer</TD> | |
894 | </TR> | |
895 | <TR> | |
896 | <TD>CUPS-Accept-Jobs</TD> | |
897 | <TD>Sets the printer-is-accepting-jobs value for a printer to true</TD> | |
898 | </TR> | |
899 | <TR> | |
900 | <TD>CUPS-Add-Modify-Class</TD> | |
901 | <TD>Adds or modifies a class</TD> | |
902 | </TR> | |
903 | <TR> | |
904 | <TD>CUPS-Add-Modify-Printer</TD> | |
905 | <TD>Adds or modifies a printer</TD> | |
906 | </TR> | |
907 | <TR> | |
908 | <TD>CUPS-Authenticate-Job</TD> | |
909 | <TD>Authenticates a job for printing</TD> | |
910 | </TR> | |
911 | <TR> | |
912 | <TD>CUPS-Delete-Class</TD> | |
913 | <TD>Deletes a class</TD> | |
914 | </TR> | |
915 | <TR> | |
916 | <TD>CUPS-Delete-Printer</TD> | |
917 | <TD>Deletes a printer</TD> | |
918 | </TR> | |
919 | <TR> | |
920 | <TD>CUPS-Get-Classes</TD> | |
921 | <TD>Gets a list of classes</TD> | |
922 | </TR> | |
923 | <TR> | |
924 | <TD>CUPS-Get-Default</TD> | |
925 | <TD>Gets the (network/server) default printer or class</TD> | |
926 | </TR> | |
927 | <TR> | |
928 | <TD>CUPS-Get-Devices</TD> | |
929 | <TD>Gets a list of available devices</TD> | |
930 | </TR> | |
931 | <TR> | |
932 | <TD>CUPS-Get-PPDs</TD> | |
933 | <TD>Gets a list of available manufacturers or drivers</TD> | |
934 | </TR> | |
935 | <TR> | |
936 | <TD>CUPS-Get-Printers</TD> | |
937 | <TD>Gets a list of printers and/or classes</TD> | |
938 | </TR> | |
939 | <TR> | |
940 | <TD>CUPS-Move-Job</TD> | |
941 | <TD>Moves a job to a new destination</TD> | |
942 | </TR> | |
943 | <TR> | |
944 | <TD>CUPS-Reject-Jobs</TD> | |
945 | <TD>Sets the printer-is-accepting-jobs value for a printer to false</TD> | |
946 | </TR> | |
947 | <TR> | |
948 | <TD>CUPS-Set-Default</TD> | |
949 | <TD>Sets the network/server default printer or class</TD> | |
950 | </TR> | |
951 | <TR> | |
952 | <TD>Disable-Printer</TD> | |
953 | <TD>Sets the printer-state value for a printer to stopped</TD> | |
954 | </TR> | |
955 | <TR> | |
956 | <TD>Enable-Printer</TD> | |
957 | <TD>Sets the printer-state value for a printer to idle/processing</TD> | |
958 | </TR> | |
959 | <TR> | |
960 | <TD>Get-Job-Attributes</TD> | |
961 | <TD>Gets information about a job</TD> | |
962 | </TR> | |
963 | <TR> | |
964 | <TD>Get-Jobs</TD> | |
965 | <TD>Gets a list of jobs</TD> | |
966 | </TR> | |
967 | <TR> | |
968 | <TD>Get-Notifications</TD> | |
969 | <TD>Gets a list of events</TD> | |
970 | </TR> | |
971 | <TR> | |
972 | <TD>Get-Printer-Attributes</TD> | |
eac3a0a0 | 973 | <TD>Gets information about a printer or class</TD> |
480ef0fe | 974 | </TR> |
975 | <TR> | |
976 | <TD>Get-Subscription-Attributes</TD> | |
eac3a0a0 | 977 | <TD>Gets information about a notification subscription</TD> |
480ef0fe | 978 | </TR> |
979 | <TR> | |
980 | <TD>Get-Subscriptions</TD> | |
981 | <TD>Gets a list of notification subscriptions</TD> | |
982 | </TR> | |
983 | <TR> | |
984 | <TD>Hold-Job</TD> | |
985 | <TD>Holds a job for printing</TD> | |
986 | </TR> | |
987 | <TR> | |
988 | <TD>Pause-Printer</TD> | |
989 | <TD>Sets the printer-state value for a printer to stopped</TD> | |
990 | </TR> | |
991 | <TR> | |
992 | <TD>Print-Job</TD> | |
993 | <TD>Creates a job with a single file for printing</TD> | |
994 | </TR> | |
995 | <TR> | |
996 | <TD>Purge-Jobs</TD> | |
997 | <TD>Removes all jobs from a printer</TD> | |
998 | </TR> | |
999 | <TR> | |
1000 | <TD>Release-Job</TD> | |
1001 | <TD>Releases a previously held job for printing</TD> | |
1002 | </TR> | |
1003 | <TR> | |
1004 | <TD>Renew-Subscription</TD> | |
1005 | <TD>Renews a notification subscription</TD> | |
1006 | </TR> | |
1007 | <TR> | |
1008 | <TD>Restart-Job</TD> | |
1009 | <TD>Reprints a job</TD> | |
1010 | </TR> | |
1011 | <TR> | |
1012 | <TD>Resume-Printer</TD> | |
eac3a0a0 | 1013 | <TD>Sets the printer-state value for a printer to idle/processing</TD> |
480ef0fe | 1014 | </TR> |
1015 | <TR> | |
1016 | <TD>Send-Document</TD> | |
1017 | <TD>Adds a file to an job created with Create-Job</TD> | |
1018 | </TR> | |
1019 | <TR> | |
1020 | <TD>Set-Job-Attributes</TD> | |
1021 | <TD>Changes job options</TD> | |
1022 | </TR> | |
1023 | <TR> | |
1024 | <TD>Validate-Job</TD> | |
1025 | <TD>Validates job options prior to printing</TD> | |
1026 | </TR> | |
1027 | </TBODY> | |
1028 | </TABLE></DIV> | |
1029 | ||
1030 | ||
1031 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="LimitExcept">LimitExcept</A></H2> | |
1032 | ||
1033 | <H3>Examples</H3> | |
1034 | ||
1035 | <PRE CLASS="command"> | |
1036 | <Location /path> | |
1037 | <LimitExcept GET POST> | |
1038 | ... | |
1039 | </LimitExcept> | |
1040 | </Location> | |
ef416fc2 | 1041 | </PRE> |
1042 | ||
480ef0fe | 1043 | <H3>Description</H3> |
ef416fc2 | 1044 | |
1045 | <P>The <CODE>LimitExcept</CODE> directive groups access control | |
1046 | directives for specific types of HTTP requests and must appear | |
1047 | inside a <A HREF="#Location"><CODE>Location</CODE></A> section. | |
1048 | Unlike the <A HREF="#Limit"><CODE>Limit</CODE></A> directive, | |
1049 | <CODE>LimitExcept</CODE> restricts access for all requests | |
1050 | <I>except</I> those listed on the <CODE>LimitExcept</CODE> | |
1051 | line.</P> | |
1052 | ||
1053 | ||
480ef0fe | 1054 | <H2 CLASS="title"><A NAME="LimitRequestBody">LimitRequestBody</A></H2> |
ef416fc2 | 1055 | |
480ef0fe | 1056 | <H3>Examples</H3> |
ef416fc2 | 1057 | |
1058 | <PRE CLASS="command"> | |
1059 | LimitRequestBody 10485760 | |
1060 | LimitRequestBody 10m | |
1061 | LimitRequestBody 0 | |
1062 | </PRE> | |
1063 | ||
480ef0fe | 1064 | <H3>Description</H3> |
ef416fc2 | 1065 | |
1066 | <P>The <CODE>LimitRequestBody</CODE> directive controls the | |
1067 | maximum size of print files, IPP requests, and HTML form data in | |
1068 | HTTP POST requests. The default limit is 0 which disables the | |
1069 | limit check.</P> | |
1070 | ||
1071 | ||
480ef0fe | 1072 | <H2 CLASS="title"><A NAME="Listen">Listen</A></H2> |
ef416fc2 | 1073 | |
480ef0fe | 1074 | <H3>Examples</H3> |
ef416fc2 | 1075 | |
1076 | <PRE CLASS="command"> | |
1077 | Listen 127.0.0.1:631 | |
1078 | Listen 192.0.2.1:631 | |
1079 | Listen [::1]:631 | |
1080 | Listen *:631 | |
1081 | </PRE> | |
1082 | ||
480ef0fe | 1083 | <H3>Description</H3> |
ef416fc2 | 1084 | |
1085 | <P>The <CODE>Listen</CODE> directive specifies a network address | |
1086 | and port to listen for connections. Multiple <CODE>Listen</CODE> | |
1087 | directives can be provided to listen on multiple addresses.</P> | |
1088 | ||
1089 | <P>The <CODE>Listen</CODE> directive is similar to the <A | |
1090 | HREF="#Port"><CODE>Port</CODE></A> directive but allows you to | |
1091 | restrict access to specific interfaces or networks.</P> | |
1092 | ||
1093 | ||
480ef0fe | 1094 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="ListenBackLog">ListenBackLog</A></H2> |
1095 | ||
1096 | <H3>Examples</H3> | |
1097 | ||
1098 | <PRE CLASS="command"> | |
1099 | ListenBackLog 5 | |
1100 | ListenBackLog 10 | |
1101 | </PRE> | |
1102 | ||
1103 | <H3>Description</H3> | |
1104 | ||
1105 | <P>The <CODE>ListenBackLog</CODE> directive sets the maximum | |
1106 | number of pending connections the scheduler will allow. This | |
1107 | normally only affects very busy servers that have reached the <A | |
1108 | HREF="#MaxClients"><CODE>MaxClients</CODE></A> limit, but can | |
1109 | also be triggered by large numbers of simultaneous connections. | |
1110 | When the limit is reached, the operating system will refuse | |
1111 | additional connections until the scheduler can accept the pending | |
1112 | ones. The default is the OS-defined default limit, typically | |
1113 | either 5 for older operating systems or 128 for newer operating | |
1114 | systems.</P> | |
1115 | ||
1116 | ||
1117 | <H2 CLASS="title"><A NAME="Location">Location</A></H2> | |
ef416fc2 | 1118 | |
480ef0fe | 1119 | <H3>Examples</H3> |
ef416fc2 | 1120 | |
1121 | <PRE CLASS="command"> | |
1122 | <Location /> | |
1123 | ... | |
1124 | </Location> | |
1125 | ||
1126 | <Location /admin> | |
1127 | ... | |
1128 | </Location> | |
1129 | ||
1130 | <Location /admin/conf> | |
1131 | ... | |
1132 | </Location> | |
1133 | ||
1134 | <Location /admin/log> | |
1135 | ... | |
1136 | </Location> | |
1137 | ||
1138 | <Location /classes> | |
1139 | ... | |
1140 | </Location> | |
1141 | ||
1142 | <Location /classes/name> | |
1143 | ... | |
1144 | </Location> | |
1145 | ||
1146 | <Location /jobs> | |
1147 | ... | |
1148 | </Location> | |
1149 | ||
1150 | <Location /printers> | |
1151 | ... | |
1152 | </Location> | |
1153 | ||
1154 | <Location /printers/name> | |
1155 | ... | |
1156 | </Location> | |
1157 | ||
1158 | </PRE> | |
1159 | ||
480ef0fe | 1160 | <H3>Description</H3> |
ef416fc2 | 1161 | |
1162 | <P>The <CODE>Location</CODE> directive specifies access control | |
1163 | and authentication options for the specified HTTP resource or | |
1164 | path. The <A HREF="#Allow"><CODE>Allow</CODE></A>, <A | |
1165 | HREF="#AuthType"><CODE>AuthType</CODE></A>, <A | |
1166 | HREF="#Deny"><CODE>Deny</CODE></A>, <A | |
1167 | HREF="#Encryption"><CODE>Encryption</CODE></A>, <A | |
1168 | HREF="#Limit"><CODE>Limit</CODE></A>, <A | |
1169 | HREF="#LimitExcept"><CODE>LimitExcept</CODE></A>, <A | |
1170 | HREF="#Order"><CODE>Order</CODE></A>, <A | |
1171 | HREF="#Require"><CODE>Require</CODE></A>, and <A | |
1172 | HREF="#Satisfy"><CODE>Satisfy</CODE></A> directives may all | |
1173 | appear inside a location.</P> | |
1174 | ||
1175 | <P>Note that more specific resources override the less specific | |
1176 | ones. So the directives inside the <CODE>/printers/name</CODE> | |
1177 | location will override ones from <CODE>/printers</CODE>. | |
1178 | Directives inside <CODE>/printers</CODE> will override ones from | |
1179 | <CODE>/</CODE>. None of the directives are inherited.</P> | |
1180 | ||
9aff70cc | 1181 | <DIV CLASS="table"><TABLE SUMMARY="Common Locations on the Server"> |
480ef0fe | 1182 | <CAPTION>Table 3: <A NAME="TABLE3">Common Locations on the Server</A></CAPTION> |
1183 | <THEAD> | |
ef416fc2 | 1184 | <TR><TH>Location</TH><TH>Description</TH></TR> |
480ef0fe | 1185 | </THEAD> |
1186 | <TBODY> | |
ef416fc2 | 1187 | <TR><TD><CODE>/</CODE></TD><TD>The path for all get operations (get-printers, get-jobs, etc.)</TD></TR> |
1188 | <TR><TD><CODE>/admin</CODE></TD><TD>The path for all administration operations (add-printer, delete-printer, start-printer, etc.)</TD></TR> | |
1189 | <TR><TD><CODE>/admin/conf</CODE></TD><TD>The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)</TD></TR> | |
1190 | <TR><TD><CODE>/admin/log</CODE></TD><TD>The path for access to the CUPS log files (access_log, error_log, page_log)</TD></TR> | |
1191 | <TR><TD><CODE>/classes</CODE></TD><TD>The path for all classes</TD></TR> | |
1192 | <TR><TD><CODE>/classes/name</CODE></TD><TD>The resource for class <CODE>name</CODE></TD></TR> | |
1193 | <TR><TD><CODE>/jobs</CODE></TD><TD>The path for all jobs (hold-job, release-job, etc.)</TD></TR> | |
1194 | <TR><TD><CODE>/jobs/id</CODE></TD><TD>The resource for job <CODE>id</CODE></TD></TR> | |
1195 | <TR><TD><CODE>/printers</CODE></TD><TD>The path for all printers</TD></TR> | |
1196 | <TR><TD><CODE>/printers/name</CODE></TD><TD>The path for printer <CODE>name</CODE></TD></TR> | |
1197 | <TR><TD><CODE>/printers/name.ppd</CODE></TD><TD>The PPD file path for printer <CODE>name</CODE></TD></TR> | |
480ef0fe | 1198 | </TBODY> |
ef416fc2 | 1199 | </TABLE></DIV> |
1200 | ||
1201 | ||
178cb736 MS |
1202 | <H2 CLASS="title"><A NAME="LogDebugHistory">LogDebugHistory</A></H2> |
1203 | ||
1204 | <H3>Examples</H3> | |
1205 | ||
1206 | <PRE CLASS="command"> | |
1207 | LogDebugHistory 0 | |
1208 | LogDebugHistory 200 | |
1209 | </PRE> | |
1210 | ||
1211 | <H3>Description</H3> | |
1212 | ||
1213 | <P>When <A HREF="#LogLevel"><CODE>LogLevel</CODE></A> is not set to | |
1214 | <CODE>debug</CODE> or <CODE>debug2</CODE>, the <CODE>LogDebugHistory</CODE> | |
1215 | directive specifies the number of debugging messages that are logged when an | |
1216 | error occurs during printing. The default is 200 messages. A value of 0 | |
1217 | disables debugging history entirely and is not recommended.</P> | |
1218 | ||
1219 | ||
480ef0fe | 1220 | <H2 CLASS="title"><A NAME="LogLevel">LogLevel</A></H2> |
ef416fc2 | 1221 | |
480ef0fe | 1222 | <H3>Examples</H3> |
ef416fc2 | 1223 | |
1224 | <PRE CLASS="command"> | |
1225 | LogLevel none | |
1226 | LogLevel emerg | |
1227 | LogLevel alert | |
1228 | LogLevel crit | |
1229 | LogLevel error | |
1230 | LogLevel warn | |
1231 | LogLevel notice | |
1232 | LogLevel info | |
1233 | LogLevel debug | |
1234 | LogLevel debug2 | |
1235 | </PRE> | |
1236 | ||
480ef0fe | 1237 | <H3>Description</H3> |
ef416fc2 | 1238 | |
1239 | <P>The <CODE>LogLevel</CODE> directive specifies the level of | |
cb7f98ee | 1240 | logging for the <A HREF="ref-cups-files-conf.html#ErrorLog"><CODE>ErrorLog</CODE></A> |
ef416fc2 | 1241 | file. The following values are recognized (each level logs |
1242 | everything under the preceding levels):</P> | |
1243 | ||
1244 | <UL> | |
1245 | ||
1246 | <LI><CODE>none</CODE> - Log nothing</LI> | |
1247 | ||
1248 | <LI><CODE>emerg</CODE> - Log emergency conditions that | |
1249 | prevent the server from running</LI> | |
1250 | ||
1251 | <LI><CODE>alert</CODE> - Log alerts that must be handled | |
1252 | immediately</LI> | |
1253 | ||
1254 | <LI><CODE>crit</CODE> - Log critical errors that don't | |
1255 | prevent the server from running</LI> | |
1256 | ||
1257 | <LI><CODE>error</CODE> - Log general errors</LI> | |
1258 | ||
1259 | <LI><CODE>warn</CODE> - Log errors and warnings</LI> | |
1260 | ||
1261 | <LI><CODE>notice</CODE> - Log temporary error conditions</LI> | |
1262 | ||
1263 | <LI><CODE>info</CODE> - Log all requests and state | |
1f0275e3 | 1264 | changes</LI> |
ef416fc2 | 1265 | |
1266 | <LI><CODE>debug</CODE> - Log basic debugging | |
1267 | information</LI> | |
1268 | ||
1269 | <LI><CODE>debug2</CODE> - Log all debugging | |
1270 | information</LI> | |
1271 | ||
1272 | </UL> | |
1273 | ||
1f0275e3 MS |
1274 | <p>The default <code>LogLevel</code> is <code>@CUPS_LOG_LEVEL@</code>.</p> |
1275 | ||
ef416fc2 | 1276 | |
dfd5680b MS |
1277 | <H2 CLASS="title"><A NAME="LogTimeFormat">LogTimeFormat</A></H2> |
1278 | ||
1279 | <H3>Examples</H3> | |
1280 | ||
1281 | <PRE CLASS="command"> | |
1282 | LogTimeFormat standard | |
1283 | LogTimeFormat usecs | |
1284 | </PRE> | |
1285 | ||
1286 | <H3>Description</H3> | |
1287 | ||
1288 | <P>The <CODE>LogTimeFormat</CODE> directive specifies the format used for the | |
1289 | date and time in the log files. <CODE>Standard</CODE> uses the standard Apache | |
1290 | Common Log Format date and time while <CODE>usecs</CODE> adds microseconds. | |
1291 | The default is <CODE>standard</CODE>.</P> | |
1292 | ||
1293 | ||
480ef0fe | 1294 | <H2 CLASS="title"><A NAME="MaxClients">MaxClients</A></H2> |
ef416fc2 | 1295 | |
480ef0fe | 1296 | <H3>Examples</H3> |
ef416fc2 | 1297 | |
1298 | <PRE CLASS="command"> | |
1299 | MaxClients 100 | |
1300 | MaxClients 1024 | |
1301 | </PRE> | |
1302 | ||
480ef0fe | 1303 | <H3>Description</H3> |
ef416fc2 | 1304 | |
1305 | <P>The <CODE>MaxClients</CODE> directive controls the maximum | |
1306 | number of simultaneous clients that will be allowed by the | |
1307 | server. The default is 100 clients.</P> | |
1308 | ||
1309 | <BLOCKQUOTE><B>Note:</B> | |
1310 | ||
1311 | <P>Since each print job requires a file descriptor for the status | |
1312 | pipe, the scheduler internally limits the <CODE>MaxClients</CODE> | |
1313 | value to 1/3 of the available file descriptors to avoid possible | |
1314 | problems when printing large numbers of jobs.</P> | |
1315 | ||
1316 | </BLOCKQUOTE> | |
1317 | ||
1318 | ||
480ef0fe | 1319 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.18</SPAN><A NAME="MaxClientsPerHost">MaxClientsPerHost</A></H2> |
ef416fc2 | 1320 | |
480ef0fe | 1321 | <H3>Examples</H3> |
ef416fc2 | 1322 | |
1323 | <PRE CLASS="command"> | |
1324 | MaxClientsPerHost 10 | |
1325 | </PRE> | |
1326 | ||
480ef0fe | 1327 | <H3>Description</H3> |
ef416fc2 | 1328 | |
1329 | <P>The <CODE>MaxClientsPerHost</CODE> directive controls the | |
1330 | maximum number of simultaneous clients that will be allowed from | |
1331 | a single host by the server. The default is the | |
1332 | <CODE>MaxClients</CODE> value.</P> | |
1333 | ||
1334 | <P>This directive provides a small measure of protection against | |
1335 | Denial of Service attacks from a single host.</P> | |
1336 | ||
1337 | ||
480ef0fe | 1338 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.16</SPAN><A NAME="MaxCopies">MaxCopies</A></H2> |
ef416fc2 | 1339 | |
480ef0fe | 1340 | <H3>Examples</H3> |
ef416fc2 | 1341 | |
1342 | <PRE CLASS="command"> | |
1343 | MaxCopies 100 | |
1344 | MaxCopies 65535 | |
1345 | </PRE> | |
1346 | ||
480ef0fe | 1347 | <H3>Description</H3> |
ef416fc2 | 1348 | |
1349 | <P>The <CODE>MaxCopies</CODE> directive controls the maximum | |
1350 | number of copies that a user can print of a job. The default is | |
b94498cf | 1351 | @CUPS_MAX_COPIES@ copies.</P> |
ef416fc2 | 1352 | |
1353 | <BLOCKQUOTE><B>Note:</B> | |
1354 | ||
1355 | <P>Most HP PCL laser printers internally limit the number of | |
1356 | copies to 100.</P> | |
1357 | ||
1358 | </BLOCKQUOTE> | |
1359 | ||
1360 | ||
f3c17241 | 1361 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.6/OS X 10.8</SPAN><A NAME="MaxHoldTime">MaxHoldTime</A></H2> |
3e7fe0ca MS |
1362 | |
1363 | <H3>Examples</H3> | |
1364 | ||
1365 | <PRE CLASS="command"> | |
1366 | MaxHoldTime 10800 | |
82cc1f9a MS |
1367 | MaxHoldTime 3h |
1368 | MaxHoldTime 180m | |
3e7fe0ca MS |
1369 | MaxHoldTime 0 |
1370 | </PRE> | |
1371 | ||
1372 | <H3>Description</H3> | |
1373 | ||
82cc1f9a | 1374 | <P>The <CODE>MaxHoldTime</CODE> directive controls the maximum number of seconds allowed for a job to remain in the "indefinite" hold state. The job is canceled automatically if it remains held indefinitely longer than the specified time interval in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
3e7fe0ca | 1375 | |
82cc1f9a | 1376 | <p>The default setting is <CODE>0</CODE> which disables this functionality.</P> |
3e7fe0ca | 1377 | |
ef416fc2 | 1378 | |
480ef0fe | 1379 | <H2 CLASS="title"><A NAME="MaxJobs">MaxJobs</A></H2> |
ef416fc2 | 1380 | |
480ef0fe | 1381 | <H3>Examples</H3> |
ef416fc2 | 1382 | |
1383 | <PRE CLASS="command"> | |
1384 | MaxJobs 100 | |
1385 | MaxJobs 9999 | |
1386 | MaxJobs 0 | |
1387 | </PRE> | |
1388 | ||
480ef0fe | 1389 | <H3>Description</H3> |
ef416fc2 | 1390 | |
1391 | <P>The <CODE>MaxJobs</CODE> directive controls the maximum number | |
1392 | of jobs that are kept in memory. Once the number of jobs reaches | |
1393 | the limit, the oldest completed job is automatically purged from | |
1394 | the system to make room for the new one. If all of the known jobs | |
1395 | are still pending or active then the new job will be | |
1396 | rejected.</P> | |
1397 | ||
1398 | <P>Setting the maximum size to 0 disables this functionality. The | |
80ca4592 | 1399 | default setting is 500.</P> |
ef416fc2 | 1400 | |
1401 | ||
480ef0fe | 1402 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="MaxJobsPerPrinter">MaxJobsPerPrinter</A></H2> |
ef416fc2 | 1403 | |
480ef0fe | 1404 | <H3>Examples</H3> |
ef416fc2 | 1405 | |
1406 | <PRE CLASS="command"> | |
1407 | MaxJobsPerPrinter 100 | |
1408 | MaxJobsPerPrinter 9999 | |
1409 | MaxJobsPerPrinter 0 | |
1410 | </PRE> | |
1411 | ||
480ef0fe | 1412 | <H3>Description</H3> |
ef416fc2 | 1413 | |
1414 | <P>The <CODE>MaxJobsPerPrinter</CODE> directive controls the | |
1415 | maximum number of active jobs that are allowed for each printer | |
1416 | or class. Once a printer or class reaches the limit, new jobs | |
1417 | will be rejected until one of the active jobs is completed, | |
1418 | stopped, aborted, or canceled.</P> | |
1419 | ||
1420 | <P>Setting the maximum to 0 disables this functionality. The | |
1421 | default setting is 0.</P> | |
1422 | ||
1423 | ||
480ef0fe | 1424 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="MaxJobsPerUser">MaxJobsPerUser</A></H2> |
ef416fc2 | 1425 | |
480ef0fe | 1426 | <H3>Examples</H3> |
ef416fc2 | 1427 | |
1428 | <PRE CLASS="command"> | |
1429 | MaxJobsPerUser 100 | |
1430 | MaxJobsPerUser 9999 | |
1431 | MaxJobsPerUser 0 | |
1432 | </PRE> | |
1433 | ||
480ef0fe | 1434 | <H3>Description</H3> |
ef416fc2 | 1435 | |
1436 | <P>The <CODE>MaxJobsPerUser</CODE> directive controls the maximum | |
1437 | number of active jobs that are allowed for each user. Once a user | |
1438 | reaches the limit, new jobs will be rejected until one of the | |
1439 | active jobs is completed, stopped, aborted, or canceled.</P> | |
1440 | ||
1441 | <P>Setting the maximum to 0 disables this functionality. The | |
1442 | default setting is 0.</P> | |
1443 | ||
1444 | ||
f3c17241 | 1445 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.6/OS X 10.8</SPAN><A NAME="MaxJobTime">MaxJobTime</A></H2> |
dcb445bc MS |
1446 | |
1447 | <H3>Examples</H3> | |
1448 | ||
1449 | <PRE CLASS="command"> | |
1450 | MaxJobTime 10800 | |
82cc1f9a MS |
1451 | MaxJobTime 3h |
1452 | MaxJobTime 180m | |
dcb445bc MS |
1453 | MaxJobTime 0 |
1454 | </PRE> | |
1455 | ||
1456 | <H3>Description</H3> | |
1457 | ||
1458 | <P>The <CODE>MaxJobTime</CODE> directive controls the maximum number of | |
1459 | seconds allowed for a job to complete printing before it is considered "stuck". | |
82cc1f9a | 1460 | The job is canceled automatically if it takes longer than the specified time to complete in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
dcb445bc | 1461 | |
82cc1f9a | 1462 | <p>Setting the maximum time to <CODE>0</CODE> disables this functionality. The default setting is <CODE>3h</CODE> (3 hours).</P> |
dcb445bc MS |
1463 | |
1464 | ||
480ef0fe | 1465 | <H2 CLASS="title"><A NAME="MaxLogSize">MaxLogSize</A></H2> |
ef416fc2 | 1466 | |
480ef0fe | 1467 | <H3>Examples</H3> |
ef416fc2 | 1468 | |
1469 | <PRE CLASS="command"> | |
1470 | MaxLogSize 1048576 | |
1471 | MaxLogSize 1m | |
1472 | MaxLogSize 0 | |
1473 | </PRE> | |
1474 | ||
480ef0fe | 1475 | <H3>Description</H3> |
ef416fc2 | 1476 | |
1477 | <P>The <CODE>MaxLogSize</CODE> directive controls the maximum | |
1478 | size of each log file. Once a log file reaches or exceeds the | |
1479 | maximum size it is closed and renamed to <VAR>filename.O</VAR>. | |
1480 | This allows you to rotate the logs automatically. The default | |
1481 | size is 1048576 bytes (1MB).</P> | |
1482 | ||
1483 | <P>Setting the maximum size to 0 disables log rotation.</P> | |
1484 | ||
1485 | ||
480ef0fe | 1486 | <H2 CLASS="title"><SPAN CLASS="info">Deprecated</SPAN><A NAME="MaxRequestSize">MaxRequestSize</A></H2> |
ef416fc2 | 1487 | |
480ef0fe | 1488 | <H3>Examples</H3> |
ef416fc2 | 1489 | |
1490 | <PRE CLASS="command"> | |
1491 | MaxRequestSize 10485760 | |
1492 | MaxRequestSize 10m | |
1493 | MaxRequestSize 0 | |
1494 | </PRE> | |
1495 | ||
480ef0fe | 1496 | <H3>Description</H3> |
ef416fc2 | 1497 | |
1498 | <P>The <CODE>MaxRequestSize</CODE> directive controls the maximum | |
1499 | size of print files, IPP requests, and HTML form data in HTTP | |
1500 | POST requests. The default limit is 0 which disables the limit | |
1501 | check.</P> | |
1502 | ||
480ef0fe | 1503 | <P><B>This directive is deprecated and will be removed in a |
ef416fc2 | 1504 | future CUPS release.</B> Use the <A |
1505 | HREF="#LimitRequestBody"><CODE>LimitRequestBody</CODE></A> | |
1506 | directive instead.</P> | |
1507 | ||
1508 | ||
f3c17241 | 1509 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/OS X 10.6</SPAN><A NAME="MultipleOperationTimeout">MultipleOperationTimeout</A></H2> |
dfd5680b MS |
1510 | |
1511 | <H3>Examples</H3> | |
1512 | ||
1513 | <PRE CLASS="command"> | |
82cc1f9a MS |
1514 | MultipleOperationTimeout 1w |
1515 | MultipleOperationTimeout 1d | |
1516 | MultipleOperationTimeout 1h | |
1517 | MultipleOperationTimeout 5m | |
dfd5680b | 1518 | MultipleOperationTimeout 300 |
dfd5680b MS |
1519 | </PRE> |
1520 | ||
1521 | <H3>Description</H3> | |
1522 | ||
82cc1f9a MS |
1523 | <P>The <CODE>MultipleOperationTimeout</CODE> directive sets the maximum amount of time between files in a multi-file print job in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
1524 | ||
1525 | <P>The default is <CODE>5m</CODE> (five minutes).</P> | |
dfd5680b MS |
1526 | |
1527 | ||
480ef0fe | 1528 | <H2 CLASS="title"><A NAME="Order">Order</A></H2> |
ef416fc2 | 1529 | |
480ef0fe | 1530 | <H3>Examples</H3> |
ef416fc2 | 1531 | |
1532 | <PRE CLASS="command"> | |
480ef0fe | 1533 | <Location /path> |
1534 | ... | |
1535 | Order Allow,Deny | |
1536 | Order Deny,Allow | |
1537 | </Location> | |
ef416fc2 | 1538 | </PRE> |
1539 | ||
480ef0fe | 1540 | <H3>Description</H3> |
ef416fc2 | 1541 | |
1542 | <P>The <CODE>Order</CODE> directive defines the default access | |
1543 | control. The following values are supported:</P> | |
1544 | ||
1545 | <UL> | |
1546 | ||
1547 | <LI><CODE>allow,deny</CODE> - Deny requests by default, | |
1548 | then check the <A HREF="#Allow"><CODE>Allow</CODE></A> | |
1549 | lines followed by the <A | |
1550 | HREF="#Deny"><CODE>Deny</CODE></A> lines</LI> | |
1551 | ||
1552 | <LI><CODE>deny,allow</CODE> - Allow requests by default, | |
1553 | then check the <A HREF="#Deny"><CODE>Deny</CODE></A> | |
1554 | lines followed by the <A | |
1555 | HREF="#Allow"><CODE>Allow</CODE></A> lines</LI> | |
1556 | ||
1557 | </UL> | |
1558 | ||
1559 | <P>The <CODE>Order</CODE> directive must appear inside a <A | |
480ef0fe | 1560 | HREF="#Location"><CODE>Location</CODE></A> or <A |
1561 | HREF="#Limit"><CODE>Limit</CODE></A> section.</P> | |
ef416fc2 | 1562 | |
1563 | ||
01ce6322 MS |
1564 | <H2 CLASS="title"><A NAME="PageLogFormat">PageLogFormat</A></H2> |
1565 | ||
1566 | <H3>Examples</H3> | |
1567 | ||
1568 | <PRE CLASS="command"> | |
0268488e MS |
1569 | PageLogFormat %p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides} |
1570 | PageLogFormat PAGE %p %u %j %P %C %{job-billing} %{job-originating-host-name} | |
01ce6322 MS |
1571 | </PRE> |
1572 | ||
1573 | <H3>Description</H3> | |
1574 | ||
1575 | <P>The <CODE>PageLogFormat</CODE> directive sets the format of lines | |
1576 | that are logged to the page log file. Sequences beginning with percent (%) | |
1577 | characters are replaced with the corresponding information, while all other | |
1578 | characters are copied literally. The following percent sequences are | |
1579 | recognized:</P> | |
1580 | ||
1581 | <UL> | |
1582 | ||
1583 | <LI><CODE>%%</CODE>: Inserts a single percent character.</LI> | |
1584 | ||
1585 | <LI><CODE>%{name}</CODE>: Inserts the value of the specified IPP | |
1586 | attribute.</LI> | |
1587 | ||
1588 | <LI><CODE>%C</CODE>: Inserts the number of copies for the current page.</LI> | |
1589 | ||
1590 | <LI><CODE>%P</CODE>: Inserts the current page number.</LI> | |
1591 | ||
1592 | <LI><CODE>%T</CODE>: Inserts the current date and time in common log | |
1593 | format.</LI> | |
1594 | ||
1595 | <LI><CODE>%j</CODE>: Inserts the job ID.</LI> | |
1596 | ||
1597 | <LI><CODE>%p</CODE>: Inserts the printer name.</LI> | |
1598 | ||
1599 | <LI><CODE>%u</CODE>: Inserts the username.</LI> | |
1600 | ||
1601 | </UL> | |
1602 | ||
0268488e | 1603 | <P>The default is "%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}".</P> |
01ce6322 MS |
1604 | |
1605 | ||
f3c17241 | 1606 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="PassEnv">PassEnv</A></H2> |
480ef0fe | 1607 | |
1608 | <H3>Examples</H3> | |
1609 | ||
1610 | <PRE CLASS="command"> | |
1611 | PassEnv MY_ENV_VARIABLE | |
1612 | </PRE> | |
1613 | ||
1614 | <H3>Description</H3> | |
1615 | ||
1616 | <P>The <CODE>PassEnv</CODE> directive specifies an environment | |
1617 | variable that should be passed to child processes. Normally, the | |
1618 | scheduler only passes the <CODE>DYLD_LIBRARY_PATH</CODE>, | |
1619 | <CODE>LD_ASSUME_KERNEL</CODE>, <CODE>LD_LIBRARY_PATH</CODE>, | |
1620 | <CODE>LD_PRELOAD</CODE>, <CODE>NLSPATH</CODE>, | |
1621 | <CODE>SHLIB_PATH</CODE>, <CODE>TZ</CODE>, and <CODE>VGARGS</CODE> | |
1622 | environment variables to child processes.</P> | |
1623 | ||
1624 | ||
f3c17241 | 1625 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="Policy">Policy</A></H2> |
ef416fc2 | 1626 | |
480ef0fe | 1627 | <H3>Examples</H3> |
1628 | ||
1629 | <PRE CLASS="command"> | |
1630 | <Policy name> | |
1631 | <Limit operation ... operation> | |
1632 | ... | |
1633 | </Limit> | |
1634 | <Limit operation ... operation> | |
1635 | ... | |
1636 | </Limit> | |
1637 | <Limit All> | |
1638 | ... | |
1639 | </Limit> | |
1640 | </Policy> | |
1641 | </PRE> | |
1642 | ||
1643 | <H3>Description</H3> | |
1644 | ||
1645 | <P>The <CODE>Policy</CODE> directive specifies IPP operation | |
1646 | access control limits. Each policy contains 1 or more <A | |
1647 | HREF="#LimitIPP"><CODE>Limit</CODE></A> sections to set the | |
1648 | access control limits for specific operations - user limits, | |
1649 | authentication, encryption, and allowed/denied addresses, | |
1650 | domains, or hosts. The <CODE><Limit All></CODE> section | |
1651 | specifies the default access control limits for operations that | |
1652 | are not listed.</P> | |
1653 | ||
1654 | <P>Policies are named and associated with printers via the | |
1655 | printer's operation policy setting | |
1656 | (<CODE>printer-op-policy</CODE>). The default policy for the | |
1657 | scheduler is specified using the <A | |
1658 | HREF="#DefaultPolicy"><CODE>DefaultPolicy</CODE></A> | |
1659 | directive.</P> | |
1660 | ||
1661 | ||
1662 | <H2 CLASS="title"><A NAME="Port">Port</A></H2> | |
1663 | ||
1664 | <H3>Examples</H3> | |
ef416fc2 | 1665 | |
1666 | <PRE CLASS="command"> | |
1667 | Port 631 | |
1668 | Port 80 | |
1669 | </PRE> | |
1670 | ||
480ef0fe | 1671 | <H3>Description</H3> |
ef416fc2 | 1672 | |
1673 | <P>The <CODE>Port</CODE> directive specifies a port to listen on. | |
1674 | Multiple <CODE>Port</CODE> lines can be specified to listen on | |
1675 | multiple ports. The <CODE>Port</CODE> directive is equivalent to | |
1676 | "<CODE>Listen *:nnn</CODE>". The default port is 631.</P> | |
1677 | ||
1678 | <BLOCKQUOTE><B>Note:</B> | |
1679 | ||
1680 | <P>On systems that support IPv6, this directive will bind to both | |
1681 | the IPv4 and IPv6 wildcard address.</P> | |
1682 | ||
1683 | </BLOCKQUOTE> | |
1684 | ||
1685 | ||
480ef0fe | 1686 | <H2 CLASS="title"><A NAME="PreserveJobHistory">PreserveJobHistory</A></H2> |
ef416fc2 | 1687 | |
480ef0fe | 1688 | <H3>Examples</H3> |
ef416fc2 | 1689 | |
1690 | <PRE CLASS="command"> | |
1691 | PreserveJobHistory On | |
1692 | PreserveJobHistory Off | |
82cc1f9a MS |
1693 | PreserveJobHistory 1w |
1694 | PreserveJobHistory 7d | |
1695 | PreserveJobHistory 168h | |
1696 | PreserveJobHistory 10080m | |
1697 | PreserveJobHistory 604800 | |
ef416fc2 | 1698 | </PRE> |
1699 | ||
480ef0fe | 1700 | <H3>Description</H3> |
ef416fc2 | 1701 | |
82cc1f9a | 1702 | <P>The <CODE>PreserveJobHistory</CODE> directive controls whether the history of completed, canceled, or aborted print jobs is retained by the scheduler. A value of <CODE>On</CODE> preserves job information until the administrator purges it with the <CODE>cancel</CODE> command. A value of <CODE>Off</CODE> removes the job information as soon as each job is completed, canceled, or aborted. Numeric values preserve job information for the specified number of seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
ef416fc2 | 1703 | |
82cc1f9a | 1704 | <P>The default value is <CODE>On</CODE>.</P> |
ef416fc2 | 1705 | |
82cc1f9a MS |
1706 | <BLOCKQUOTE><B>Note:</B> |
1707 | ||
1708 | <P>The <A HREF="#MaxJobs"><CODE>MaxJobs</CODE></A>, <A HREF="#MaxJobsPerPrinter"><CODE>MaxJobsPerPrinter</CODE></A>, and <A HREF="#MaxJobsPerUser"><CODE>MaxJobsPerUser</CODE></A> directives can cause job history to be discarded to make room for new jobs.</P> | |
1709 | ||
1710 | </BLOCKQUOTE> | |
ef416fc2 | 1711 | |
1712 | ||
480ef0fe | 1713 | <H2 CLASS="title"><A NAME="PreserveJobFiles">PreserveJobFiles</A></H2> |
ef416fc2 | 1714 | |
480ef0fe | 1715 | <H3>Examples</H3> |
ef416fc2 | 1716 | |
1717 | <PRE CLASS="command"> | |
1718 | PreserveJobFiles On | |
1719 | PreserveJobFiles Off | |
82cc1f9a MS |
1720 | PreserveJobFiles 1w |
1721 | PreserveJobFiles 7d | |
1722 | PreserveJobFiles 168h | |
1723 | PreserveJobFiles 10080m | |
1724 | PreserveJobFiles 604800 | |
ef416fc2 | 1725 | </PRE> |
1726 | ||
480ef0fe | 1727 | <H3>Description</H3> |
ef416fc2 | 1728 | |
82cc1f9a MS |
1729 | <P>The <CODE>PreserveJobFiles</CODE> directive controls whether the document files of completed, canceled, or aborted print jobs are retained. Jobs can be restarted (and reprinted) as desired until they are purged.</P> |
1730 | ||
1731 | <P>A value of <CODE>On</CODE> preserves job files until the administrator purges them with the <CODE>cancel</CODE> command. A value of <CODE>Off</CODE> removes the job files as soon as each job is completed, canceled, or aborted. Numeric values preserve job files for the specified number of seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> | |
ef416fc2 | 1732 | |
82cc1f9a | 1733 | <P>The default value is <CODE>1d</CODE> (one day).</P> |
ef416fc2 | 1734 | |
82cc1f9a MS |
1735 | <BLOCKQUOTE><B>Note:</B> |
1736 | ||
1737 | <P>The <A HREF="#MaxJobs"><CODE>MaxJobs</CODE></A>, <A HREF="#MaxJobsPerPrinter"><CODE>MaxJobsPerPrinter</CODE></A>, <A HREF="#MaxJobsPerUser"><CODE>MaxJobsPerUser</CODE></A>, and <A HREF="#PreserveJobHistory"><CODE>PreserveJobHistory</CODE></A> directives can cause job files to be discarded sooner than specified.</P> | |
1738 | ||
1739 | </BLOCKQUOTE> | |
ef416fc2 | 1740 | |
1741 | ||
480ef0fe | 1742 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.21</SPAN><A NAME="ReloadTimeout">ReloadTimeout</A></H2> |
1743 | ||
1744 | <H3>Examples</H3> | |
1745 | ||
1746 | <PRE CLASS="command"> | |
1747 | ReloadTimeout 0 | |
49d87452 | 1748 | ReloadTimeout 30 |
480ef0fe | 1749 | </PRE> |
1750 | ||
1751 | <H3>Description</H3> | |
1752 | ||
1753 | <P>The <CODE>ReloadTimeout</CODE> directive specifies the number | |
1754 | of seconds the scheduler will wait for active jobs to complete | |
49d87452 | 1755 | before doing a restart. The default is 30 seconds.</P> |
ef416fc2 | 1756 | |
480ef0fe | 1757 | |
480ef0fe | 1758 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Require">Require</A></H2> |
ef416fc2 | 1759 | |
480ef0fe | 1760 | <H3>Examples</H3> |
ef416fc2 | 1761 | |
1762 | <PRE CLASS="command"> | |
480ef0fe | 1763 | <Location /path> |
1764 | ... | |
1765 | Require group foo bar | |
1766 | Require user john mary | |
1767 | Require valid-user | |
1768 | Require user @groupname | |
1769 | Require user @SYSTEM | |
1770 | Require user @OWNER | |
1771 | </Location> | |
ef416fc2 | 1772 | </PRE> |
1773 | ||
480ef0fe | 1774 | <H3>Description</H3> |
ef416fc2 | 1775 | |
1776 | <P>The <CODE>Require</CODE> directive specifies that | |
1777 | authentication is required for the resource. The | |
1778 | <CODE>group</CODE> keyword specifies that the authenticated user | |
1779 | must be a member of one or more of the named groups that | |
1780 | follow.</P> | |
1781 | ||
4b3f67ff | 1782 | <P>The <CODE>user</CODE> keyword specifies that the |
ef416fc2 | 1783 | authenticated user must be one of the named users or groups that |
1784 | follow. Group names are specified using the "@" prefix.</P> | |
1785 | ||
1786 | <P>The <CODE>valid-user</CODE> keyword specifies that any | |
1787 | authenticated user may access the resource.</P> | |
1788 | ||
1789 | <P>The default is to do no authentication. This directive must | |
480ef0fe | 1790 | appear inside a <A HREF="#Location"><CODE>Location</CODE></A> or |
1791 | <A HREF="#Limit"><CODE>Limit</CODE></A> section.</P> | |
ef416fc2 | 1792 | |
1793 | ||
480ef0fe | 1794 | <H2 CLASS="title"><A NAME="RIPCache">RIPCache</A></H2> |
ef416fc2 | 1795 | |
480ef0fe | 1796 | <H3>Examples</H3> |
ef416fc2 | 1797 | |
1798 | <PRE CLASS="command"> | |
eac3a0a0 | 1799 | RIPCache 128m |
ef416fc2 | 1800 | RIPCache 1g |
1801 | RIPCache 2048k | |
1802 | </PRE> | |
1803 | ||
480ef0fe | 1804 | <H3>Description</H3> |
ef416fc2 | 1805 | |
1806 | <P>The <CODE>RIPCache</CODE> directive sets the size of the | |
1807 | memory cache used by Raster Image Processor ("RIP") filters such | |
1808 | as <CODE>imagetoraster</CODE> and <CODE>pstoraster</CODE>. The | |
1809 | size can be suffixed with a "k" for kilobytes, "m" for megabytes, | |
eac3a0a0 | 1810 | or "g" for gigabytes. The default cache size is "128m", or 128 |
ef416fc2 | 1811 | megabytes.</P> |
1812 | ||
1813 | ||
480ef0fe | 1814 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.16</SPAN><A NAME="RootCertDuration">RootCertDuration</A></H2> |
1815 | ||
1816 | <H3>Examples</H3> | |
1817 | ||
1818 | <PRE CLASS="command"> | |
1819 | RootCertDuration 0 | |
82cc1f9a MS |
1820 | RootCertDuration 1w |
1821 | RootCertDuration 1d | |
1822 | RootCertDuration 1h | |
1823 | RootCertDuration 5m | |
480ef0fe | 1824 | RootCertDuration 300 |
1825 | </PRE> | |
1826 | ||
1827 | <H3>Description</H3> | |
1828 | ||
82cc1f9a MS |
1829 | <P>The <CODE>RootCertDuration</CODE> directive specifies the amount of time the <EM>root certificate</EM> remains valid in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix). The scheduler will generate a new certificate as needed when the given time interval has expired. If set to 0, the root certificate is generated only once on startup or on a restart.</P> |
1830 | ||
1831 | <P>The default is <CODE>5m</CODE> (five minutes).</P> | |
480ef0fe | 1832 | |
1833 | ||
1834 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Satisfy">Satisfy</A></H2> | |
ef416fc2 | 1835 | |
480ef0fe | 1836 | <H3>Examples</H3> |
ef416fc2 | 1837 | |
1838 | <PRE CLASS="command"> | |
480ef0fe | 1839 | <Location /path> |
1840 | ... | |
1841 | Satisfy all | |
1842 | Satisfy any | |
1843 | </Location> | |
ef416fc2 | 1844 | </PRE> |
1845 | ||
480ef0fe | 1846 | <H3>Description</H3> |
ef416fc2 | 1847 | |
1848 | <P>The <CODE>Satisfy</CODE> directive specifies whether all | |
1849 | conditions must be satisfied to allow access to the resource. If | |
1850 | set to <CODE>all</CODE>, then all authentication and access | |
eac3a0a0 | 1851 | control conditions must be satisfied to allow access.</P> |
ef416fc2 | 1852 | |
1853 | <P>Setting <CODE>Satisfy</CODE> to <CODE>any</CODE> allows a user | |
1854 | to gain access if the authentication or access control | |
1855 | requirements are satisfied. For example, you might require | |
1856 | authentication for remote access, but allow local access without | |
1857 | authentication.</P> | |
1858 | ||
1859 | <P>The default is <CODE>all</CODE>. This directive must appear | |
480ef0fe | 1860 | inside a <A HREF="#Location"><CODE>Location</CODE></A> or <A |
1861 | HREF="#Limit"><CODE>Limit</CODE></A> section.</P> | |
ef416fc2 | 1862 | |
1863 | ||
480ef0fe | 1864 | <H2 CLASS="title"><A NAME="ServerAdmin">ServerAdmin</A></H2> |
ef416fc2 | 1865 | |
480ef0fe | 1866 | <H3>Examples</H3> |
ef416fc2 | 1867 | |
1868 | <PRE CLASS="command"> | |
1869 | ServerAdmin user@host | |
1870 | ServerAdmin root@foo.bar.com | |
1871 | </PRE> | |
1872 | ||
480ef0fe | 1873 | <H3>Description</H3> |
ef416fc2 | 1874 | |
1875 | <P>The <CODE>ServerAdmin</CODE> directive identifies the email | |
1876 | address for the administrator on the system. By default the | |
1877 | administrator email address is <CODE>root@server</CODE>, where | |
480ef0fe | 1878 | <CODE>server</CODE> is the <A |
1879 | HREF="#ServerName"><CODE>ServerName</CODE></A>.</P> | |
ef416fc2 | 1880 | |
1881 | ||
178cb736 MS |
1882 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.3.10</SPAN><A NAME="ServerAlias">ServerAlias</A></H2> |
1883 | ||
1884 | <H3>Examples</H3> | |
1885 | ||
1886 | <PRE CLASS="command"> | |
1887 | ServerAlias althost | |
eac3a0a0 MS |
1888 | ServerAlias foo.example.com |
1889 | ServerAlias bar.example.com | |
88f9aafc | 1890 | ServerAlias one.example.com two.example.com |
178cb736 MS |
1891 | ServerAlias * |
1892 | </PRE> | |
1893 | ||
1894 | <H3>Description</H3> | |
1895 | ||
eac3a0a0 | 1896 | <P>The <CODE>ServerAlias</CODE> directive specifies alternate names that the server is known by. By default it contains a list of all aliases associated with the <A HREF="#ServerName"><CODE>ServerName</CODE></A>. The special name "*" can be used to allow any hostname when accessing CUPS via an external network interfaces.</P> |
178cb736 MS |
1897 | |
1898 | <BLOCKQUOTE><B>Note</B> | |
1899 | ||
1900 | <P>The <CODE>ServerAlias</CODE> directive is used for HTTP Host header | |
1901 | validation when clients connect to the scheduler from external interfaces. | |
1902 | Using the special name "*" can expose your system to known browser-based | |
1903 | DNS rebinding attacks, even when accessing sites through a firewall. If the | |
1904 | auto-discovery of alternate names does not work, we recommend listing each | |
1905 | alternate name with a ServerAlias directive instead of using "*".</P> | |
1906 | ||
1907 | </BLOCKQUOTE> | |
1908 | ||
1909 | ||
b86bc4cf | 1910 | <H2 CLASS="title"><A NAME="ServerName">ServerName</A></H2> |
ef416fc2 | 1911 | |
480ef0fe | 1912 | <H3>Examples</H3> |
ef416fc2 | 1913 | |
1914 | <PRE CLASS="command"> | |
eac3a0a0 MS |
1915 | ServerName foo.example.com |
1916 | ServerName myserver.example.com | |
ef416fc2 | 1917 | </PRE> |
1918 | ||
480ef0fe | 1919 | <H3>Description</H3> |
ef416fc2 | 1920 | |
1921 | <P>The <CODE>ServerName</CODE> directive specifies the hostname | |
1922 | that is reported to clients. By default the server name is the | |
1923 | hostname.</P> | |
1924 | ||
1925 | ||
480ef0fe | 1926 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.21</SPAN><A NAME="ServerTokens">ServerTokens</A></H2> |
1927 | ||
1928 | <H3>Examples</H3> | |
1929 | ||
1930 | <PRE CLASS="command"> | |
1931 | ServerTokens None | |
1932 | ServerTokens ProductOnly | |
1933 | ServerTokens Major | |
1934 | ServerTokens Minor | |
1935 | ServerTokens Minimal | |
1936 | ServerTokens OS | |
1937 | ServerTokens Full | |
1938 | </PRE> | |
1939 | ||
1940 | <H3>Description</H3> | |
1941 | ||
1942 | <P>The <CODE>ServerTokens</CODE> directive specifies the | |
1943 | information that is included in the <CODE>Server:</CODE> header | |
1944 | of all HTTP responses. Table 4 lists the token name along with | |
1945 | the text that is returned. The default is | |
1946 | <CODE>Minimal</CODE>.</P> | |
1947 | ||
1948 | <DIV CLASS="table"><TABLE SUMMARY="ServerToken Names and Values"> | |
1949 | <CAPTION>Table 4: <A NAME="TABLE4">ServerToken Names and Values</A></CAPTION> | |
1950 | <THEAD> | |
1951 | <TR> | |
1952 | <TH>Name</TH> | |
1953 | <TH>Value</TH> | |
1954 | </TR> | |
1955 | </THEAD> | |
1956 | <TBODY> | |
1957 | <TR> | |
1958 | <TD>None</TD> | |
1959 | <TD>No <CODE>Server:</CODE> header is returned</TD> | |
1960 | </TR> | |
1961 | <TR> | |
1962 | <TD>ProductOnly</TD> | |
1963 | <TD>"CUPS"</TD> | |
1964 | </TR> | |
1965 | <TR> | |
1966 | <TD>Major</TD> | |
1967 | <TD>"CUPS 1"</TD> | |
1968 | </TR> | |
1969 | <TR> | |
1970 | <TD>Minor</TD> | |
1971 | <TD>"CUPS 1.2"</TD> | |
1972 | </TR> | |
1973 | <TR> | |
1974 | <TD>Minimal</TD> | |
1975 | <TD>"CUPS 1.2.N" where N is the patch release</TD> | |
1976 | </TR> | |
1977 | <TR> | |
1978 | <TD>OS</TD> | |
1979 | <TD>"CUPS 1.2.N (UNAME)" where N is the patch release and | |
1980 | UNAME is the output of the <B>uname(1)</B> command</TD> | |
1981 | </TR> | |
1982 | <TR> | |
1983 | <TD>Full</TD> | |
1984 | <TD>"CUPS 1.2.N (UNAME) IPP/1.1" where N is the patch | |
1985 | release and UNAME is the output of the <B>uname(1)</B> | |
1986 | command</TD> | |
1987 | </TR> | |
1988 | </TBODY> | |
1989 | </TABLE></DIV> | |
1990 | ||
1991 | ||
f3c17241 | 1992 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="SetEnv">SetEnv</A></H2> |
480ef0fe | 1993 | |
1994 | <H3>Examples</H3> | |
1995 | ||
1996 | <PRE CLASS="command"> | |
1997 | SetEnv PATH /usr/lib/cups/filter:/bin:/usr/bin:/usr/local/bin | |
1998 | SetEnv MY_ENV_VAR foo | |
1999 | </PRE> | |
2000 | ||
2001 | <H3>Description</H3> | |
2002 | ||
2003 | <P>The <CODE>SetEnv</CODE> directive specifies an environment | |
2004 | variable that should be passed to child processes.</P> | |
2005 | ||
2006 | ||
4220952d | 2007 | <H2 CLASS="title"><A NAME="SSLListen">SSLListen</A></H2> |
ef416fc2 | 2008 | |
480ef0fe | 2009 | <H3>Examples</H3> |
ef416fc2 | 2010 | |
2011 | <PRE CLASS="command"> | |
4220952d MS |
2012 | SSLListen 127.0.0.1:443 |
2013 | SSLListen 192.0.2.1:443 | |
ef416fc2 | 2014 | </PRE> |
2015 | ||
480ef0fe | 2016 | <H3>Description</H3> |
ef416fc2 | 2017 | |
4220952d | 2018 | <P>The <CODE>SSLListen</CODE> directive specifies a network |
ef416fc2 | 2019 | address and port to listen for secure connections. Multiple |
4220952d | 2020 | <CODE>SSLListen</CODE> directives can be provided to listen on |
ef416fc2 | 2021 | multiple addresses.</P> |
2022 | ||
4220952d | 2023 | <P>The <CODE>SSLListen</CODE> directive is similar to the <A |
ef416fc2 | 2024 | HREF="#SSLPort"><CODE>SSLPort</CODE></A> directive but allows you |
2025 | to restrict access to specific interfaces or networks.</P> | |
2026 | ||
2027 | ||
b19ccc9e MS |
2028 | <H2 CLASS="title"><A NAME="SSLOptions">SSLOptions</A></H2> |
2029 | ||
2030 | <H3>Examples</H3> | |
2031 | ||
2032 | <PRE CLASS="command"> | |
2033 | SSLOptions None | |
2034 | SSLOptions NoEmptyFragments | |
2035 | </PRE> | |
2036 | ||
2037 | <H3>Description</H3> | |
2038 | ||
2039 | <P>The <CODE>SSLOptions</CODE> directive specifies additional SSL/TLS | |
2040 | protocol options to use for encrypted connected. Currently only two | |
2041 | options are supported - <code>None</code> (the default) for the most | |
2042 | secure mode and <code>NoEmptyFragments</code> to allow CUPS to work with | |
2043 | Microsoft Windows with the FIPS conformance mode enabled.</p> | |
2044 | ||
2045 | ||
480ef0fe | 2046 | <H2 CLASS="title"><A NAME="SSLPort">SSLPort</A></H2> |
ef416fc2 | 2047 | |
480ef0fe | 2048 | <H3>Examples</H3> |
ef416fc2 | 2049 | |
2050 | <PRE CLASS="command"> | |
2051 | SSLPort 443 | |
2052 | </PRE> | |
2053 | ||
480ef0fe | 2054 | <H3>Description</H3> |
ef416fc2 | 2055 | |
2056 | <P>The <CODE>SSLPort</CODE> directive specifies a port to listen | |
2057 | on for secure connections. Multiple <CODE>SSLPort</CODE> lines | |
2058 | can be specified to listen on multiple ports.</P> | |
2059 | ||
2060 | ||
a29fd7dd MS |
2061 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.6</SPAN><A NAME="StrictConformance">StrictConformance</A></H2> |
2062 | ||
2063 | <H3>Examples</H3> | |
2064 | ||
2065 | <PRE CLASS="command"> | |
2066 | StrictConformance No | |
2067 | StrictConformance Yes | |
2068 | </PRE> | |
2069 | ||
2070 | <H3>Description</H3> | |
2071 | ||
2072 | <P>The <CODE>StrictConformance</CODE> directive specifies whether the scheduler | |
2073 | requires strict IPP conformance for client requests, for example to not allow | |
2074 | document attributes in a Create-Job request. The default is | |
2075 | <code>No</code>.</P> | |
2076 | ||
2077 | ||
10d09e33 MS |
2078 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="SubscriptionPrivateAccess">SubscriptionPrivateAccess</A></H2> |
2079 | ||
2080 | <H3>Examples</H3> | |
2081 | ||
2082 | <PRE CLASS="command"> | |
2083 | SubscriptionPrivateAccess all | |
2084 | SubscriptionPrivateAccess default | |
2085 | SubscriptionPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM}+ | |
2086 | </PRE> | |
2087 | ||
2088 | <H3>Description</H3> | |
2089 | ||
2090 | <P>The <CODE>SubscriptionPrivateAccess</CODE> directive specifies the access list for a | |
2091 | subscription's private values. The "default" access list is "@OWNER @SYSTEM". | |
2092 | "@ACL" maps to the printer's requesting-user-name-allowed or | |
2093 | requesting-user-name-denied values.</P> | |
2094 | ||
2095 | <P>The <CODE>SubscriptionPrivateAccess</CODE> directive must appear inside a <A | |
2096 | HREF="#Policy"><CODE>Policy</CODE></A> section.</P> | |
2097 | ||
2098 | ||
2099 | <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.5</SPAN><A NAME="SubscriptionPrivateValues">SubscriptionPrivateValues</A></H2> | |
2100 | ||
2101 | <H3>Examples</H3> | |
2102 | ||
2103 | <PRE CLASS="command"> | |
2104 | SubscriptionPrivateValues all | |
2105 | SubscriptionPrivateValues default | |
2106 | SubscriptionPrivateValues none | |
2107 | SubscriptionPrivateValues attribute-name-1 [ ... attribute-name-N ] | |
2108 | </PRE> | |
2109 | ||
2110 | <H3>Description</H3> | |
2111 | ||
2112 | <P>The <CODE>SubscriptionPrivateValues</CODE> directive specifies the list of | |
2113 | subscription values to make private. The "default" values are "notify-events", | |
2114 | "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and | |
2115 | "notify-user-data".</P> | |
2116 | ||
2117 | <P>The <CODE>SubscriptionPrivateValues</CODE> directive must appear inside a <A | |
2118 | HREF="#Policy"><CODE>Policy</CODE></A> section.</P> | |
2119 | ||
2120 | ||
480ef0fe | 2121 | <H2 CLASS="title"><A NAME="Timeout">Timeout</A></H2> |
ef416fc2 | 2122 | |
480ef0fe | 2123 | <H3>Examples</H3> |
ef416fc2 | 2124 | |
2125 | <PRE CLASS="command"> | |
82cc1f9a MS |
2126 | Timeout 1w |
2127 | Timeout 1d | |
2128 | Timeout 1h | |
2129 | Timeout 5m | |
ef416fc2 | 2130 | Timeout 300 |
ef416fc2 | 2131 | </PRE> |
2132 | ||
480ef0fe | 2133 | <H3>Description</H3> |
ef416fc2 | 2134 | |
2135 | <P>The <CODE>Timeout</CODE> directive controls the amount of time | |
82cc1f9a MS |
2136 | to wait before an active HTTP or IPP request times out in seconds (no suffix), minutes ("m" suffix), hours ("h" suffix), days ("d" suffix), or weeks ("w" suffix).</P> |
2137 | ||
2138 | <P>The default timeout is <CODE>5m</CODE> (five minutes).</P> | |
ef416fc2 | 2139 | |
2140 | ||
229681c1 MS |
2141 | <H2 CLASS="title"><SPAN CLASS="INFO">CUPS 1.5</SPAN><A NAME="WebInterface">WebInterface</A></H2> |
2142 | ||
2143 | <H3>Examples</H3> | |
2144 | ||
2145 | <PRE CLASS="command"> | |
ffa2ca90 MS |
2146 | WebInterface Yes |
2147 | WebInterface No | |
229681c1 MS |
2148 | </PRE> |
2149 | ||
2150 | <H3>Description</H3> | |
2151 | ||
ffa2ca90 | 2152 | <P>The <CODE>WebInterface</CODE> directive specifies whether the web interface is enabled. The default value is <CODE>No</CODE> on OS X and <CODE>Yes</CODE> on all other operating systems.</P> |
229681c1 | 2153 | |
ef416fc2 | 2154 | </BODY> |
2155 | </HTML> |