2 <!-- SECTION: References -->
4 <TITLE>cupsd.conf
</TITLE>
5 <LINK REL=
"STYLESHEET" TYPE=
"text/css" HREF=
"../cups-printable.css">
9 <H1 CLASS=
"title">cupsd.conf
</H1>
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>
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>
24 <LI>AIX, Linux, Solaris:
26 /etc/init.d/cups restart
31 /sbin/init.d/cups restart
36 sudo launchctl unload /System/Library/LaunchDaemons/org.cups.cupsd.plist
37 sudo launchctl load /System/Library/LaunchDaemons/org.cups.cupsd.plist
42 <P>You can also edit this file from the CUPS web interface, which
43 automatically handles restarting the scheduler.
</P>
45 <BLOCKQUOTE><B>Note:
</B>
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>
52 <H2 CLASS=
"title"><A NAME=
"AccessLogLevel">AccessLogLevel
</A></H2>
58 AccessLogLevel actions
64 <P>The
<CODE>AccessLogLevel
</CODE> directive controls which requests are logged
65 to the access log file. The following levels are defined:
</P>
69 <LI><CODE>config
</CODE>; Log when printers and classes are added,
70 deleted, or modified and when configuration files are accessed or
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>
77 <LI><CODE>all
</CODE>; Log all requests.
</LI>
81 <P>The default access log level is
<CODE>@CUPS_ACCESS_LOG_LEVEL@
</CODE>.
</P>
84 <H2 CLASS=
"title"><A NAME=
"Allow">Allow
</A></H2>
89 <Location /path
>
93 Allow from *.example.com
94 Allow from .example.com
95 Allow from host.example.com
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
102 Allow from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
103 Allow from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/mmm
111 <P>The
<CODE>Allow
</CODE> directive specifies a hostname, IP
112 address, or network that is allowed access to the server.
113 <CODE>Allow
</CODE> directives are cumulative, so multiple
114 <CODE>Allow
</CODE> directives can be used to allow access for
115 multiple hosts or networks.
</P>
117 <P>Host and domain name matching require that you enable the
<A
118 HREF=
"#HostNameLookups"><CODE>HostNameLookups
</CODE></A>
121 <P>The
<CODE>/mm
</CODE> notation specifies a CIDR netmask, as shown in
122 <A HREF=
"#TABLE1">Table
1</A>.
</P>
124 <DIV CLASS=
"table"><TABLE SUMMARY=
"CIDR Netmasks">
125 <CAPTION>Table
1:
<A NAME=
"TABLE1">CIDR Netmasks
</A></CAPTION>
127 <TH WIDTH=
"10%">mm
</TH>
128 <TH WIDTH=
"20%">netmask
</TH>
129 <TH WIDTH=
"10%">mm
</TH>
130 <TH WIDTH=
"20%">netmask
</TH>
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>
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>
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>
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>
158 <P>The
<CODE>@LOCAL
</CODE> name will allow access from all local
159 interfaces. The
<CODE>@IF(name)
</CODE> name will allow access
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>
165 <P>The
<CODE>Allow
</CODE> directive must appear inside a
<A
166 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
167 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
170 <H2 CLASS=
"title"><A NAME=
"AuthType">AuthType
</A></H2>
174 <PRE CLASS=
"command">
175 <Location /path
>
187 <P>The
<CODE>AuthType
</CODE> directive defines the type of
188 authentication to perform:
</P>
192 <LI><CODE>None
</CODE> - No authentication should be
193 performed (default)
</LI>
195 <LI><CODE>Basic
</CODE> - Basic authentication should be
196 performed using the UNIX password and group files
</LI>
198 <LI><CODE>Digest
</CODE> - Digest authentication should be
199 performed using the
<VAR>/etc/cups/passwd.md5
</VAR>
202 <LI><CODE>BasicDigest
</CODE> - Basic authentication
203 should be performed using the
204 <VAR>/etc/cups/passwd.md5
</VAR> file
</LI>
206 <LI><CODE>Negotiate
</CODE> - Kerberos authentication
207 should be performed
</LI>
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>
216 <P>The
<CODE>AuthType
</CODE> directive must appear inside a
<A
217 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
218 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
221 <H2 CLASS=
"title"><A NAME=
"AutoPurgeJobs">AutoPurgeJobs
</A></H2>
225 <PRE CLASS=
"command">
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>
238 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"BrowseLocalProtocols">BrowseLocalProtocols
</A></H2>
242 <PRE CLASS=
"command">
243 BrowseLocalProtocols all
244 BrowseLocalProtocols none
245 BrowseLocalProtocols dnssd
250 <P>The
<CODE>BrowseLocalProtocols
</CODE> directive specifies the
251 protocols to use when advertising local shared printers on the
252 network. Multiple protocols can be specified by separating them
253 with spaces. The default is
"<CODE>@CUPS_BROWSE_LOCAL_PROTOCOLS@</CODE>".
</P>
256 <H2 CLASS=
"title"><A NAME=
"BrowseWebIF">BrowseWebIF
</A></H2>
260 <PRE CLASS=
"command">
267 <P>The
<CODE>BrowseWebIF
</CODE> directive controls whether the CUPS web
268 interface is advertised via DNS-SD. The default setting is
269 <CODE>Off
</CODE>.
</P>
272 <H2 CLASS=
"title"><A NAME=
"Browsing">Browsing
</A></H2>
276 <PRE CLASS=
"command">
283 <P>The
<CODE>Browsing
</CODE> directive controls whether or not
284 printer sharing is enabled. The default setting is
285 <CODE>@CUPS_BROWSING@
</CODE>.
</P>
288 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Classification">Classification
</A></H2>
292 <PRE CLASS=
"command">
294 Classification classified
295 Classification confidential
296 Classification secret
297 Classification topsecret
298 Classification unclassified
303 <P>The
<CODE>Classification
</CODE> directive sets the
304 classification level on the server. When this option is set, at
305 least one of the banner pages is forced to the classification
306 level, and the classification is placed on each page of output.
307 The default is no classification level.
</P>
310 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.10</SPAN><A NAME=
"ClassifyOverride">ClassifyOverride
</A></H2>
314 <PRE CLASS=
"command">
321 <P>The
<CODE>ClassifyOverride
</CODE> directive specifies whether
322 users can override the default classification level on the
323 server. When the server classification is set, users can change
324 the classification using the
<CODE>job-sheets
</CODE> option and
325 can choose to only print one security banner before or after the
326 job. If the
<CODE>job-sheets
</CODE> option is set to
327 <CODE>none
</CODE> then the server default classification is
330 <P>The default is to not allow classification overrides.
</P>
333 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"DefaultAuthType">DefaultAuthType
</A></H2>
337 <PRE CLASS=
"command">
338 DefaultAuthType Basic
339 DefaultAuthType BasicDigest
340 DefaultAuthType Digest
341 DefaultAuthType Negotiate
346 <P>The
<CODE>DefaultAuthType
</CODE> directive specifies the type
347 of authentication to use for IPP operations that require a
348 username. The default is
<CODE>Basic
</CODE>.
</P>
351 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"DefaultEncryption">DefaultEncryption
</A></H2>
355 <PRE CLASS=
"command">
356 DefaultEncryption Never
357 DefaultEncryption IfRequested
358 DefaultEncryption Required
363 <P>The
<CODE>DefaultEncryption
</CODE> directive specifies the
364 type of encryption to use when performing authentication. The
365 default is
<CODE>Required
</CODE>.
</P>
368 <H2 CLASS=
"title"><A NAME=
"DefaultLanguage">DefaultLanguage
</A></H2>
372 <PRE CLASS=
"command">
382 <P>The
<CODE>DefaultLanguage
</CODE> directive specifies the
383 default language to use for client connections. Setting the
384 default language also sets the default character set if a
385 language localization file exists for it. The default language
386 is
"en" for English.
</P>
389 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/OS X
10.6</SPAN><A NAME=
"DefaultPaperSize">DefaultPaperSize
</A></H2>
393 <PRE CLASS=
"command">
394 DefaultPaperSize Letter
396 DefaultPaperSize Auto
397 DefaultPaperSize None
402 <P>The
<CODE>DefaultPaperSize
</CODE> directive specifies the default paper
403 size to use when creating new printers. The default is
<CODE>Auto
</CODE>
404 which uses a paper size appropriate for the system default locale. A value
405 of
<CODE>None
</CODE> tells the scheduler to not set the default paper
409 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"DefaultPolicy">DefaultPolicy
</A></H2>
413 <PRE CLASS=
"command">
414 DefaultPolicy default
415 DefaultPolicy authenticated
421 <P>The
<CODE>DefaultPolicy
</CODE> directive specifies the default
422 policy to use for IPP operation. The default is
423 <CODE>default
</CODE>. CUPS also includes a policy called
424 <CODE>authenticated
</CODE> that requires a username and password for printing
425 and other job operations.
</P>
428 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"DefaultShared">DefaultShared
</A></H2>
432 <PRE CLASS=
"command">
439 <P>The
<CODE>DefaultShared
</CODE> directive specifies whether
440 printers are shared (published) by default. The default is
441 <CODE>@CUPS_DEFAULT_SHARED@
</CODE>.
</P>
444 <H2 CLASS=
"title"><A NAME=
"Deny">Deny
</A></H2>
448 <PRE CLASS=
"command">
449 <Location /path
>
453 Deny from *.example.com
454 Deny from .example.com
455 Deny from host.example.com
458 Deny from nnn.nnn.nnn.*
459 Deny from nnn.nnn.nnn.nnn
460 Deny from nnn.nnn.nnn.nnn/mm
461 Deny from nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
462 Deny from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
463 Deny from [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]/mmm
471 <P>The
<CODE>Deny
</CODE> directive specifies a hostname, IP
472 address, or network that is denied access to the server.
473 <CODE>Deny
</CODE> directives are cumulative, so multiple
474 <CODE>Deny
</CODE> directives can be used to deny access for
475 multiple hosts or networks.
</P>
477 <P>Host and domain name matching require that you enable the
<A
478 HREF=
"#HostNameLookups"><CODE>HostNameLookups
</CODE></A>
481 <P>The
<CODE>/mm
</CODE> notation specifies a CIDR netmask, a shown in
482 <A HREF=
"TABLE1">Table
1</A>.
</P>
484 <P>The
<CODE>@LOCAL
</CODE> name will deny access from all local
485 interfaces. The
<CODE>@IF(name)
</CODE> name will deny access from
486 the named interface. In both cases, CUPS only denies access from
487 the network that the interface(s) are configured for - requests
488 arriving on the interface from a foreign network will
489 <em>not
</em> be denied.
</P>
491 <P>The
<CODE>Deny
</CODE> directive must appear inside a
<A
492 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
493 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
496 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/OS X
10.6</SPAN><A NAME=
"DirtyCleanInterval">DirtyCleanInterval
</A></H2>
500 <PRE CLASS=
"command">
501 DirtyCleanInterval
1w
502 DirtyCleanInterval
1d
503 DirtyCleanInterval
1h
504 DirtyCleanInterval
1m
505 DirtyCleanInterval
30
511 <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>
513 <P>The default value is
<CODE>30</CODE> (
30 seconds).
</P>
516 <H2 CLASS=
"title"><A NAME=
"Encryption">Encryption
</A></H2>
520 <PRE CLASS=
"command">
521 <Location /path
>
524 Encryption IfRequested
531 <P>The
<CODE>Encryption
</CODE> directive must appear instead a
<A
532 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
533 HREF=
"#Limit"><CODE>Limit
</CODE></A> section and specifies the
534 encryption settings for that location. The default setting is
535 <CODE>IfRequested
</CODE> for all locations.
</P>
538 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.3/OS X
10.5</SPAN><A NAME=
"ErrorPolicy">ErrorPolicy
</A></H2>
542 <PRE CLASS=
"command">
543 ErrorPolicy abort-job
544 ErrorPolicy retry-job
545 ErrorPolicy stop-printer
550 <P>The
<CODE>ErrorPolicy
</CODE> directive defines the default policy that
551 is used when a backend is unable to send a print job to the
554 <P>The following values are supported:
</P>
558 <LI><CODE>abort-job
</CODE> - Abort the job and proceed
559 with the next job in the queue
</LI>
561 <LI><CODE>retry-job
</CODE> - Retry the job after waiting
562 for N seconds; the
<VAR>cupsd.conf
</VAR> <A
563 HREF=
"#JobRetryInterval"><CODE>JobRetryInterval
</CODE></A>
564 directive controls the value of N
</LI>
566 <LI><CODE>retry-this-job
</CODE> - Retry the current job immediately
567 and indefinitely.
</LI>
569 <LI><CODE>stop-printer
</CODE> - Stop the printer and keep
570 the job for future printing; this is the default
576 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.3</SPAN><A NAME=
"FilterLimit">FilterLimit
</A></H2>
580 <PRE CLASS=
"command">
588 <P>The
<CODE>FilterLimit
</CODE> directive sets the maximum cost
589 of all running job filters. It can be used to limit the number of
590 filter programs that are run on a server to minimize disk,
591 memory, and CPU resource problems. A limit of
0 disables filter
594 <P>An average print to a non-PostScript printer needs a filter
595 limit of about
200. A PostScript printer needs about half that
596 (
100). Setting the limit below these thresholds will effectively
597 limit the scheduler to printing a single job at any time.
</P>
599 <P>The default limit is
0.
</P>
602 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.16</SPAN><A NAME=
"FilterNice">FilterNice
</A></H2>
606 <PRE CLASS=
"command">
614 <P>The
<CODE>FilterNice
</CODE> directive sets the
<B>nice(
1)
</B>
615 value to assign to filter processes. The nice value ranges from
616 0, the highest priority, to
19, the lowest priority. The default
620 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.6/OS X
10.8</SPAN><A NAME=
"GSSServiceName">GSSServiceName
</A></H2>
624 <PRE CLASS=
"command">
631 <P>The
<CODE>GSSServiceName
</CODE> directive sets the Kerberos service name to use. The default is
<CODE>@CUPS_DEFAULT_GSSSERVICE_NAME@
</CODE> for compatibility with Microsoft Windows.
</P>
634 <H2 CLASS=
"title"><A NAME=
"HostNameLookups">HostNameLookups
</A></H2>
638 <PRE CLASS=
"command">
641 HostNameLookups Double
646 <P>The
<CODE>HostNameLookups
</CODE> directive controls whether or
647 not CUPS looks up the hostname for connecting clients. The
648 <CODE>Double
</CODE> setting causes CUPS to verify that the
649 hostname resolved from the address matches one of the addresses
650 returned for that hostname.
<CODE>Double
</CODE> lookups also
651 prevent clients with unregistered addresses from connecting to
654 <P>The default is
<CODE>Off
</CODE> to avoid the potential server
655 performance problems with hostname lookups. Set this option to
656 <CODE>On
</CODE> or
<CODE>Double
</CODE> only if absolutely
660 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.9</SPAN><A NAME=
"Include">Include
</A></H2>
664 <PRE CLASS=
"command">
666 Include /foo/bar/filename
671 <P>The
<CODE>Include
</CODE> directive includes the named file in
672 the
<CODE>cupsd.conf
</CODE> file. If no leading path is provided,
673 the file is assumed to be relative to the
<A
674 HREF=
"ref-cups-files-conf.html#ServerRoot"><CODE>ServerRoot
</CODE></A> directory.
</P>
677 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.5</SPAN><A NAME=
"JobPrivateAccess">JobPrivateAccess
</A></H2>
681 <PRE CLASS=
"command">
683 JobPrivateAccess default
684 JobPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM}+
689 <P>The
<CODE>JobPrivateAccess
</CODE> directive specifies the access list for a
690 job's private values. The
"default" access list is
"@OWNER @SYSTEM".
"@ACL" maps
691 to the printer's requesting-user-name-allowed or requesting-user-name-denied
694 <P>The
<CODE>JobPrivateAccess
</CODE> directive must appear inside a
<A
695 HREF=
"#Policy"><CODE>Policy
</CODE></A> section.
</P>
698 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.5</SPAN><A NAME=
"JobPrivateValues">JobPrivateValues
</A></H2>
702 <PRE CLASS=
"command">
704 JobPrivateValues default
705 JobPrivateValues none
706 JobPrivateValues attribute-name-
1 [ ... attribute-name-N ]
711 <P>The
<CODE>JobPrivateValues
</CODE> directive specifies the list of job values
712 to make private. The
"default" values are
"job-name",
713 "job-originating-host-name",
"job-originating-user-name", and
"phone".
</P>
715 <P>The
<CODE>JobPrivateValues
</CODE> directive must appear inside a
<A
716 HREF=
"#Policy"><CODE>Policy
</CODE></A> section.
</P>
719 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"JobRetryInterval">JobRetryInterval
</A></H2>
723 <PRE CLASS=
"command">
733 <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>
735 <P>The default is
<CODE>30</CODE> (
30 seconds).
</P>
738 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/OS X
10.6</SPAN><A NAME=
"JobKillDelay">JobKillDelay
</A></H2>
742 <PRE CLASS=
"command">
752 <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>
754 <P>The default is
<CODE>30</CODE> (
30 seconds).
</P>
757 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"JobRetryLimit">JobRetryLimit
</A></H2>
761 <PRE CLASS=
"command">
768 <P>The
<CODE>JobRetryLimit
</CODE> directive specifies the maximum
769 number of times the scheduler will try to print a job. This is
770 typically used for fax queues but can also be used with normal
771 print queues whose error policy is
<CODE>retry-job
</CODE>. The
772 default is
5 times.
</P>
775 <H2 CLASS=
"title"><A NAME=
"KeepAlive">KeepAlive
</A></H2>
779 <PRE CLASS=
"command">
786 <P>The
<CODE>KeepAlive
</CODE> directive controls whether or not
787 to support persistent HTTP connections. The default is
790 <P>HTTP/
1.1 clients automatically support persistent connections,
791 while HTTP/
1.0 clients must specifically request them using the
792 <CODE>Keep-Alive
</CODE> attribute in the
<CODE>Connection:
</CODE>
793 field of each request.
</P>
796 <H2 CLASS=
"title"><A NAME=
"KeepAliveTimeout">KeepAliveTimeout
</A></H2>
800 <PRE CLASS=
"command">
810 <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>
812 <P>The default is
<CODE>30</CODE> (
30 seconds).
</P>
815 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Limit">Limit (Location)
</A></H2>
819 <PRE CLASS=
"command">
820 <Location /path
>
821 <Limit GET POST
>
833 <P>The
<CODE>Limit
</CODE> directive groups access control
834 directives for specific types of HTTP requests and must appear
835 inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> section.
836 Access can be limited for individual request types
837 (
<CODE>DELETE
</CODE>,
<CODE>GET
</CODE>,
<CODE>HEAD
</CODE>,
838 <CODE>OPTIONS
</CODE>,
<CODE>POST
</CODE>,
<CODE>PUT
</CODE>, and
839 <CODE>TRACE
</CODE>) or for all request types (
<CODE>ALL
</CODE>).
840 The request type names are case-sensitive for compatibility with
844 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"LimitIPP">Limit (Policy)
</A></H2>
848 <PRE CLASS=
"command">
850 <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
>
862 <P>When included in
<A HREF=
"#Policy"><CODE>Policy
</CODE></A>
863 sections, the
<CODE>Limit
</CODE> directive groups access control
864 directives for specific IPP operations. Multiple operations can
865 be listed, separated by spaces. Table
2 lists the supported
868 <DIV CLASS=
"table"><TABLE SUMMARY=
"Supported IPP Operations">
869 <CAPTION>Table
2:
<A NAME=
"TABLE2">Supported IPP Operations
</A></CAPTION>
872 <TH>Operation Name
</TH>
879 <TD>All operations - used as the default limit for
880 operations that are not listed
</TD>
884 <TD>Cancel a job
</TD>
887 <TD>Cancel-Subscription
</TD>
888 <TD>Cancel a subscription
</TD>
892 <TD>Create a new, empty job
</TD>
895 <TD>Create-Job-Subscription
</TD>
896 <TD>Creates a notification subscription on a job
</TD>
899 <TD>Create-Printer-Subscription
</TD>
900 <TD>Creates a notification subscription on a printer
</TD>
903 <TD>CUPS-Accept-Jobs
</TD>
904 <TD>Sets the printer-is-accepting-jobs value for a printer to true
</TD>
907 <TD>CUPS-Add-Modify-Class
</TD>
908 <TD>Adds or modifies a class
</TD>
911 <TD>CUPS-Add-Modify-Printer
</TD>
912 <TD>Adds or modifies a printer
</TD>
915 <TD>CUPS-Authenticate-Job
</TD>
916 <TD>Authenticates a job for printing
</TD>
919 <TD>CUPS-Delete-Class
</TD>
920 <TD>Deletes a class
</TD>
923 <TD>CUPS-Delete-Printer
</TD>
924 <TD>Deletes a printer
</TD>
927 <TD>CUPS-Get-Classes
</TD>
928 <TD>Gets a list of classes
</TD>
931 <TD>CUPS-Get-Default
</TD>
932 <TD>Gets the (network/server) default printer or class
</TD>
935 <TD>CUPS-Get-Devices
</TD>
936 <TD>Gets a list of available devices
</TD>
939 <TD>CUPS-Get-PPDs
</TD>
940 <TD>Gets a list of available manufacturers or drivers
</TD>
943 <TD>CUPS-Get-Printers
</TD>
944 <TD>Gets a list of printers and/or classes
</TD>
947 <TD>CUPS-Move-Job
</TD>
948 <TD>Moves a job to a new destination
</TD>
951 <TD>CUPS-Reject-Jobs
</TD>
952 <TD>Sets the printer-is-accepting-jobs value for a printer to false
</TD>
955 <TD>CUPS-Set-Default
</TD>
956 <TD>Sets the network/server default printer or class
</TD>
959 <TD>Disable-Printer
</TD>
960 <TD>Sets the printer-state value for a printer to stopped
</TD>
963 <TD>Enable-Printer
</TD>
964 <TD>Sets the printer-state value for a printer to idle/processing
</TD>
967 <TD>Get-Job-Attributes
</TD>
968 <TD>Gets information about a job
</TD>
972 <TD>Gets a list of jobs
</TD>
975 <TD>Get-Notifications
</TD>
976 <TD>Gets a list of events
</TD>
979 <TD>Get-Printer-Attributes
</TD>
980 <TD>Gets information about a printer or class
</TD>
983 <TD>Get-Subscription-Attributes
</TD>
984 <TD>Gets information about a notification subscription
</TD>
987 <TD>Get-Subscriptions
</TD>
988 <TD>Gets a list of notification subscriptions
</TD>
992 <TD>Holds a job for printing
</TD>
995 <TD>Pause-Printer
</TD>
996 <TD>Sets the printer-state value for a printer to stopped
</TD>
1000 <TD>Creates a job with a single file for printing
</TD>
1004 <TD>Removes all jobs from a printer
</TD>
1007 <TD>Release-Job
</TD>
1008 <TD>Releases a previously held job for printing
</TD>
1011 <TD>Renew-Subscription
</TD>
1012 <TD>Renews a notification subscription
</TD>
1015 <TD>Restart-Job
</TD>
1016 <TD>Reprints a job
</TD>
1019 <TD>Resume-Printer
</TD>
1020 <TD>Sets the printer-state value for a printer to idle/processing
</TD>
1023 <TD>Send-Document
</TD>
1024 <TD>Adds a file to an job created with Create-Job
</TD>
1027 <TD>Set-Job-Attributes
</TD>
1028 <TD>Changes job options
</TD>
1031 <TD>Validate-Job
</TD>
1032 <TD>Validates job options prior to printing
</TD>
1038 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"LimitExcept">LimitExcept
</A></H2>
1042 <PRE CLASS=
"command">
1043 <Location /path
>
1044 <LimitExcept GET POST
>
1046 </LimitExcept
>
1050 <H3>Description
</H3>
1052 <P>The
<CODE>LimitExcept
</CODE> directive groups access control
1053 directives for specific types of HTTP requests and must appear
1054 inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> section.
1055 Unlike the
<A HREF=
"#Limit"><CODE>Limit
</CODE></A> directive,
1056 <CODE>LimitExcept
</CODE> restricts access for all requests
1057 <I>except
</I> those listed on the
<CODE>LimitExcept
</CODE>
1061 <H2 CLASS=
"title"><A NAME=
"LimitRequestBody">LimitRequestBody
</A></H2>
1065 <PRE CLASS=
"command">
1066 LimitRequestBody
10485760
1067 LimitRequestBody
10m
1071 <H3>Description
</H3>
1073 <P>The
<CODE>LimitRequestBody
</CODE> directive controls the
1074 maximum size of print files, IPP requests, and HTML form data in
1075 HTTP POST requests. The default limit is
0 which disables the
1079 <H2 CLASS=
"title"><A NAME=
"Listen">Listen
</A></H2>
1083 <PRE CLASS=
"command">
1084 Listen
127.0.0.1:
631
1085 Listen
192.0.2.1:
631
1090 <H3>Description
</H3>
1092 <P>The
<CODE>Listen
</CODE> directive specifies a network address
1093 and port to listen for connections. Multiple
<CODE>Listen
</CODE>
1094 directives can be provided to listen on multiple addresses.
</P>
1096 <P>The
<CODE>Listen
</CODE> directive is similar to the
<A
1097 HREF=
"#Port"><CODE>Port
</CODE></A> directive but allows you to
1098 restrict access to specific interfaces or networks.
</P>
1101 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"ListenBackLog">ListenBackLog
</A></H2>
1105 <PRE CLASS=
"command">
1110 <H3>Description
</H3>
1112 <P>The
<CODE>ListenBackLog
</CODE> directive sets the maximum
1113 number of pending connections the scheduler will allow. This
1114 normally only affects very busy servers that have reached the
<A
1115 HREF=
"#MaxClients"><CODE>MaxClients
</CODE></A> limit, but can
1116 also be triggered by large numbers of simultaneous connections.
1117 When the limit is reached, the operating system will refuse
1118 additional connections until the scheduler can accept the pending
1119 ones. The default is the OS-defined default limit, typically
1120 either
5 for older operating systems or
128 for newer operating
1124 <H2 CLASS=
"title"><A NAME=
"Location">Location
</A></H2>
1128 <PRE CLASS=
"command">
1133 <Location /admin
>
1137 <Location /admin/conf
>
1141 <Location /admin/log
>
1145 <Location /classes
>
1149 <Location /classes/name
>
1153 <Location /jobs
>
1157 <Location /printers
>
1161 <Location /printers/name
>
1167 <H3>Description
</H3>
1169 <P>The
<CODE>Location
</CODE> directive specifies access control
1170 and authentication options for the specified HTTP resource or
1171 path. The
<A HREF=
"#Allow"><CODE>Allow
</CODE></A>,
<A
1172 HREF=
"#AuthType"><CODE>AuthType
</CODE></A>,
<A
1173 HREF=
"#Deny"><CODE>Deny
</CODE></A>,
<A
1174 HREF=
"#Encryption"><CODE>Encryption
</CODE></A>,
<A
1175 HREF=
"#Limit"><CODE>Limit
</CODE></A>,
<A
1176 HREF=
"#LimitExcept"><CODE>LimitExcept
</CODE></A>,
<A
1177 HREF=
"#Order"><CODE>Order
</CODE></A>,
<A
1178 HREF=
"#Require"><CODE>Require
</CODE></A>, and
<A
1179 HREF=
"#Satisfy"><CODE>Satisfy
</CODE></A> directives may all
1180 appear inside a location.
</P>
1182 <P>Note that more specific resources override the less specific
1183 ones. So the directives inside the
<CODE>/printers/name
</CODE>
1184 location will override ones from
<CODE>/printers
</CODE>.
1185 Directives inside
<CODE>/printers
</CODE> will override ones from
1186 <CODE>/
</CODE>. None of the directives are inherited.
</P>
1188 <DIV CLASS=
"table"><TABLE SUMMARY=
"Common Locations on the Server">
1189 <CAPTION>Table
3:
<A NAME=
"TABLE3">Common Locations on the Server
</A></CAPTION>
1191 <TR><TH>Location
</TH><TH>Description
</TH></TR>
1194 <TR><TD><CODE>/
</CODE></TD><TD>The path for all get operations (get-printers, get-jobs, etc.)
</TD></TR>
1195 <TR><TD><CODE>/admin
</CODE></TD><TD>The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
</TD></TR>
1196 <TR><TD><CODE>/admin/conf
</CODE></TD><TD>The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
</TD></TR>
1197 <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>
1198 <TR><TD><CODE>/classes
</CODE></TD><TD>The path for all classes
</TD></TR>
1199 <TR><TD><CODE>/classes/name
</CODE></TD><TD>The resource for class
<CODE>name
</CODE></TD></TR>
1200 <TR><TD><CODE>/jobs
</CODE></TD><TD>The path for all jobs (hold-job, release-job, etc.)
</TD></TR>
1201 <TR><TD><CODE>/jobs/id
</CODE></TD><TD>The resource for job
<CODE>id
</CODE></TD></TR>
1202 <TR><TD><CODE>/printers
</CODE></TD><TD>The path for all printers
</TD></TR>
1203 <TR><TD><CODE>/printers/name
</CODE></TD><TD>The path for printer
<CODE>name
</CODE></TD></TR>
1204 <TR><TD><CODE>/printers/name.ppd
</CODE></TD><TD>The PPD file path for printer
<CODE>name
</CODE></TD></TR>
1209 <H2 CLASS=
"title"><A NAME=
"LogDebugHistory">LogDebugHistory
</A></H2>
1213 <PRE CLASS=
"command">
1218 <H3>Description
</H3>
1220 <P>When
<A HREF=
"#LogLevel"><CODE>LogLevel
</CODE></A> is not set to
1221 <CODE>debug
</CODE> or
<CODE>debug2
</CODE>, the
<CODE>LogDebugHistory
</CODE>
1222 directive specifies the number of debugging messages that are logged when an
1223 error occurs during printing. The default is
200 messages. A value of
0
1224 disables debugging history entirely and is not recommended.
</P>
1227 <H2 CLASS=
"title"><A NAME=
"LogLevel">LogLevel
</A></H2>
1231 <PRE CLASS=
"command">
1244 <H3>Description
</H3>
1246 <P>The
<CODE>LogLevel
</CODE> directive specifies the level of
1247 logging for the
<A HREF=
"ref-cups-files-conf.html#ErrorLog"><CODE>ErrorLog
</CODE></A>
1248 file. The following values are recognized (each level logs
1249 everything under the preceding levels):
</P>
1253 <LI><CODE>none
</CODE> - Log nothing
</LI>
1255 <LI><CODE>emerg
</CODE> - Log emergency conditions that
1256 prevent the server from running
</LI>
1258 <LI><CODE>alert
</CODE> - Log alerts that must be handled
1261 <LI><CODE>crit
</CODE> - Log critical errors that don't
1262 prevent the server from running
</LI>
1264 <LI><CODE>error
</CODE> - Log general errors
</LI>
1266 <LI><CODE>warn
</CODE> - Log errors and warnings
</LI>
1268 <LI><CODE>notice
</CODE> - Log temporary error conditions
</LI>
1270 <LI><CODE>info
</CODE> - Log all requests and state
1273 <LI><CODE>debug
</CODE> - Log basic debugging
1276 <LI><CODE>debug2
</CODE> - Log all debugging
1281 <p>The default
<code>LogLevel
</code> is
<code>@CUPS_LOG_LEVEL@
</code>.
</p>
1284 <H2 CLASS=
"title"><A NAME=
"LogTimeFormat">LogTimeFormat
</A></H2>
1288 <PRE CLASS=
"command">
1289 LogTimeFormat standard
1293 <H3>Description
</H3>
1295 <P>The
<CODE>LogTimeFormat
</CODE> directive specifies the format used for the
1296 date and time in the log files.
<CODE>Standard
</CODE> uses the standard Apache
1297 Common Log Format date and time while
<CODE>usecs
</CODE> adds microseconds.
1298 The default is
<CODE>standard
</CODE>.
</P>
1301 <H2 CLASS=
"title"><A NAME=
"MaxClients">MaxClients
</A></H2>
1305 <PRE CLASS=
"command">
1310 <H3>Description
</H3>
1312 <P>The
<CODE>MaxClients
</CODE> directive controls the maximum
1313 number of simultaneous clients that will be allowed by the
1314 server. The default is
100 clients.
</P>
1316 <BLOCKQUOTE><B>Note:
</B>
1318 <P>Since each print job requires a file descriptor for the status
1319 pipe, the scheduler internally limits the
<CODE>MaxClients
</CODE>
1320 value to
1/
3 of the available file descriptors to avoid possible
1321 problems when printing large numbers of jobs.
</P>
1326 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.18</SPAN><A NAME=
"MaxClientsPerHost">MaxClientsPerHost
</A></H2>
1330 <PRE CLASS=
"command">
1331 MaxClientsPerHost
10
1334 <H3>Description
</H3>
1336 <P>The
<CODE>MaxClientsPerHost
</CODE> directive controls the
1337 maximum number of simultaneous clients that will be allowed from
1338 a single host by the server. The default is the
1339 <CODE>MaxClients
</CODE> value.
</P>
1341 <P>This directive provides a small measure of protection against
1342 Denial of Service attacks from a single host.
</P>
1345 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.16</SPAN><A NAME=
"MaxCopies">MaxCopies
</A></H2>
1349 <PRE CLASS=
"command">
1354 <H3>Description
</H3>
1356 <P>The
<CODE>MaxCopies
</CODE> directive controls the maximum
1357 number of copies that a user can print of a job. The default is
1358 @CUPS_MAX_COPIES@ copies.
</P>
1360 <BLOCKQUOTE><B>Note:
</B>
1362 <P>Most HP PCL laser printers internally limit the number of
1368 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.6/OS X
10.8</SPAN><A NAME=
"MaxHoldTime">MaxHoldTime
</A></H2>
1372 <PRE CLASS=
"command">
1379 <H3>Description
</H3>
1381 <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>
1383 <p>The default setting is
<CODE>0</CODE> which disables this functionality.
</P>
1386 <H2 CLASS=
"title"><A NAME=
"MaxJobs">MaxJobs
</A></H2>
1390 <PRE CLASS=
"command">
1396 <H3>Description
</H3>
1398 <P>The
<CODE>MaxJobs
</CODE> directive controls the maximum number
1399 of jobs that are kept in memory. Once the number of jobs reaches
1400 the limit, the oldest completed job is automatically purged from
1401 the system to make room for the new one. If all of the known jobs
1402 are still pending or active then the new job will be
1405 <P>Setting the maximum size to
0 disables this functionality. The
1406 default setting is
500.
</P>
1409 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"MaxJobsPerPrinter">MaxJobsPerPrinter
</A></H2>
1413 <PRE CLASS=
"command">
1414 MaxJobsPerPrinter
100
1415 MaxJobsPerPrinter
9999
1419 <H3>Description
</H3>
1421 <P>The
<CODE>MaxJobsPerPrinter
</CODE> directive controls the
1422 maximum number of active jobs that are allowed for each printer
1423 or class. Once a printer or class reaches the limit, new jobs
1424 will be rejected until one of the active jobs is completed,
1425 stopped, aborted, or canceled.
</P>
1427 <P>Setting the maximum to
0 disables this functionality. The
1428 default setting is
0.
</P>
1431 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"MaxJobsPerUser">MaxJobsPerUser
</A></H2>
1435 <PRE CLASS=
"command">
1441 <H3>Description
</H3>
1443 <P>The
<CODE>MaxJobsPerUser
</CODE> directive controls the maximum
1444 number of active jobs that are allowed for each user. Once a user
1445 reaches the limit, new jobs will be rejected until one of the
1446 active jobs is completed, stopped, aborted, or canceled.
</P>
1448 <P>Setting the maximum to
0 disables this functionality. The
1449 default setting is
0.
</P>
1452 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.6/OS X
10.8</SPAN><A NAME=
"MaxJobTime">MaxJobTime
</A></H2>
1456 <PRE CLASS=
"command">
1463 <H3>Description
</H3>
1465 <P>The
<CODE>MaxJobTime
</CODE> directive controls the maximum number of
1466 seconds allowed for a job to complete printing before it is considered
"stuck".
1467 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>
1469 <p>Setting the maximum time to
<CODE>0</CODE> disables this functionality. The default setting is
<CODE>3h
</CODE> (
3 hours).
</P>
1472 <H2 CLASS=
"title"><A NAME=
"MaxLogSize">MaxLogSize
</A></H2>
1476 <PRE CLASS=
"command">
1482 <H3>Description
</H3>
1484 <P>The
<CODE>MaxLogSize
</CODE> directive controls the maximum
1485 size of each log file. Once a log file reaches or exceeds the
1486 maximum size it is closed and renamed to
<VAR>filename.O
</VAR>.
1487 This allows you to rotate the logs automatically. The default
1488 size is
1048576 bytes (
1MB).
</P>
1490 <P>Setting the maximum size to
0 disables log rotation.
</P>
1493 <H2 CLASS=
"title"><SPAN CLASS=
"info">Deprecated
</SPAN><A NAME=
"MaxRequestSize">MaxRequestSize
</A></H2>
1497 <PRE CLASS=
"command">
1498 MaxRequestSize
10485760
1503 <H3>Description
</H3>
1505 <P>The
<CODE>MaxRequestSize
</CODE> directive controls the maximum
1506 size of print files, IPP requests, and HTML form data in HTTP
1507 POST requests. The default limit is
0 which disables the limit
1510 <P><B>This directive is deprecated and will be removed in a
1511 future CUPS release.
</B> Use the
<A
1512 HREF=
"#LimitRequestBody"><CODE>LimitRequestBody
</CODE></A>
1513 directive instead.
</P>
1516 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.4/OS X
10.6</SPAN><A NAME=
"MultipleOperationTimeout">MultipleOperationTimeout
</A></H2>
1520 <PRE CLASS=
"command">
1521 MultipleOperationTimeout
1w
1522 MultipleOperationTimeout
1d
1523 MultipleOperationTimeout
1h
1524 MultipleOperationTimeout
5m
1525 MultipleOperationTimeout
300
1528 <H3>Description
</H3>
1530 <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>
1532 <P>The default is
<CODE>5m
</CODE> (five minutes).
</P>
1535 <H2 CLASS=
"title"><A NAME=
"Order">Order
</A></H2>
1539 <PRE CLASS=
"command">
1540 <Location /path
>
1547 <H3>Description
</H3>
1549 <P>The
<CODE>Order
</CODE> directive defines the default access
1550 control. The following values are supported:
</P>
1554 <LI><CODE>allow,deny
</CODE> - Deny requests by default,
1555 then check the
<A HREF=
"#Allow"><CODE>Allow
</CODE></A>
1556 lines followed by the
<A
1557 HREF=
"#Deny"><CODE>Deny
</CODE></A> lines
</LI>
1559 <LI><CODE>deny,allow
</CODE> - Allow requests by default,
1560 then check the
<A HREF=
"#Deny"><CODE>Deny
</CODE></A>
1561 lines followed by the
<A
1562 HREF=
"#Allow"><CODE>Allow
</CODE></A> lines
</LI>
1566 <P>The
<CODE>Order
</CODE> directive must appear inside a
<A
1567 HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
1568 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
1571 <H2 CLASS=
"title"><A NAME=
"PageLogFormat">PageLogFormat
</A></H2>
1575 <PRE CLASS=
"command">
1576 PageLogFormat %p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}
1577 PageLogFormat PAGE %p %u %j %P %C %{job-billing} %{job-originating-host-name}
1580 <H3>Description
</H3>
1582 <P>The
<CODE>PageLogFormat
</CODE> directive sets the format of lines
1583 that are logged to the page log file. Sequences beginning with percent (%)
1584 characters are replaced with the corresponding information, while all other
1585 characters are copied literally. The following percent sequences are
1590 <LI><CODE>%%
</CODE>: Inserts a single percent character.
</LI>
1592 <LI><CODE>%{name}
</CODE>: Inserts the value of the specified IPP
1595 <LI><CODE>%C
</CODE>: Inserts the number of copies for the current page.
</LI>
1597 <LI><CODE>%P
</CODE>: Inserts the current page number.
</LI>
1599 <LI><CODE>%T
</CODE>: Inserts the current date and time in common log
1602 <LI><CODE>%j
</CODE>: Inserts the job ID.
</LI>
1604 <LI><CODE>%p
</CODE>: Inserts the printer name.
</LI>
1606 <LI><CODE>%u
</CODE>: Inserts the username.
</LI>
1610 <P>The default is
"%p %u %j %T %P %C %{job-billing} %{job-originating-host-name} %{job-name} %{media} %{sides}".
</P>
1613 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"PassEnv">PassEnv
</A></H2>
1617 <PRE CLASS=
"command">
1618 PassEnv MY_ENV_VARIABLE
1621 <H3>Description
</H3>
1623 <P>The
<CODE>PassEnv
</CODE> directive specifies an environment
1624 variable that should be passed to child processes. Normally, the
1625 scheduler only passes the
<CODE>DYLD_LIBRARY_PATH
</CODE>,
1626 <CODE>LD_ASSUME_KERNEL
</CODE>,
<CODE>LD_LIBRARY_PATH
</CODE>,
1627 <CODE>LD_PRELOAD
</CODE>,
<CODE>NLSPATH
</CODE>,
1628 <CODE>SHLIB_PATH
</CODE>,
<CODE>TZ
</CODE>, and
<CODE>VGARGS
</CODE>
1629 environment variables to child processes.
</P>
1632 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"Policy">Policy
</A></H2>
1636 <PRE CLASS=
"command">
1638 <Limit operation ... operation
>
1641 <Limit operation ... operation
>
1650 <H3>Description
</H3>
1652 <P>The
<CODE>Policy
</CODE> directive specifies IPP operation
1653 access control limits. Each policy contains
1 or more
<A
1654 HREF=
"#LimitIPP"><CODE>Limit
</CODE></A> sections to set the
1655 access control limits for specific operations - user limits,
1656 authentication, encryption, and allowed/denied addresses,
1657 domains, or hosts. The
<CODE><Limit All
></CODE> section
1658 specifies the default access control limits for operations that
1661 <P>Policies are named and associated with printers via the
1662 printer's operation policy setting
1663 (
<CODE>printer-op-policy
</CODE>). The default policy for the
1664 scheduler is specified using the
<A
1665 HREF=
"#DefaultPolicy"><CODE>DefaultPolicy
</CODE></A>
1669 <H2 CLASS=
"title"><A NAME=
"Port">Port
</A></H2>
1673 <PRE CLASS=
"command">
1678 <H3>Description
</H3>
1680 <P>The
<CODE>Port
</CODE> directive specifies a port to listen on.
1681 Multiple
<CODE>Port
</CODE> lines can be specified to listen on
1682 multiple ports. The
<CODE>Port
</CODE> directive is equivalent to
1683 "<CODE>Listen *:nnn</CODE>". The default port is
631.
</P>
1685 <BLOCKQUOTE><B>Note:
</B>
1687 <P>On systems that support IPv6, this directive will bind to both
1688 the IPv4 and IPv6 wildcard address.
</P>
1693 <H2 CLASS=
"title"><A NAME=
"PreserveJobHistory">PreserveJobHistory
</A></H2>
1697 <PRE CLASS=
"command">
1698 PreserveJobHistory On
1699 PreserveJobHistory Off
1700 PreserveJobHistory
1w
1701 PreserveJobHistory
7d
1702 PreserveJobHistory
168h
1703 PreserveJobHistory
10080m
1704 PreserveJobHistory
604800
1707 <H3>Description
</H3>
1709 <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>
1711 <P>The default value is
<CODE>On
</CODE>.
</P>
1713 <BLOCKQUOTE><B>Note:
</B>
1715 <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>
1720 <H2 CLASS=
"title"><A NAME=
"PreserveJobFiles">PreserveJobFiles
</A></H2>
1724 <PRE CLASS=
"command">
1726 PreserveJobFiles Off
1729 PreserveJobFiles
168h
1730 PreserveJobFiles
10080m
1731 PreserveJobFiles
604800
1734 <H3>Description
</H3>
1736 <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>
1738 <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>
1740 <P>The default value is
<CODE>1d
</CODE> (one day).
</P>
1742 <BLOCKQUOTE><B>Note:
</B>
1744 <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>
1749 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.21</SPAN><A NAME=
"ReloadTimeout">ReloadTimeout
</A></H2>
1753 <PRE CLASS=
"command">
1758 <H3>Description
</H3>
1760 <P>The
<CODE>ReloadTimeout
</CODE> directive specifies the number
1761 of seconds the scheduler will wait for active jobs to complete
1762 before doing a restart. The default is
30 seconds.
</P>
1765 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Require">Require
</A></H2>
1769 <PRE CLASS=
"command">
1770 <Location /path
>
1772 Require group foo bar
1773 Require user john mary
1775 Require user @groupname
1776 Require user @SYSTEM
1781 <H3>Description
</H3>
1783 <P>The
<CODE>Require
</CODE> directive specifies that
1784 authentication is required for the resource. The
1785 <CODE>group
</CODE> keyword specifies that the authenticated user
1786 must be a member of one or more of the named groups that
1789 <P>The
<CODE>user
</CODE> keyword specifies that the
1790 authenticated user must be one of the named users or groups that
1791 follow. Group names are specified using the
"@" prefix.
</P>
1793 <P>The
<CODE>valid-user
</CODE> keyword specifies that any
1794 authenticated user may access the resource.
</P>
1796 <P>The default is to do no authentication. This directive must
1797 appear inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> or
1798 <A HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
1801 <H2 CLASS=
"title"><A NAME=
"RIPCache">RIPCache
</A></H2>
1805 <PRE CLASS=
"command">
1811 <H3>Description
</H3>
1813 <P>The
<CODE>RIPCache
</CODE> directive sets the size of the
1814 memory cache used by Raster Image Processor (
"RIP") filters such
1815 as
<CODE>imagetoraster
</CODE> and
<CODE>pstoraster
</CODE>. The
1816 size can be suffixed with a
"k" for kilobytes,
"m" for megabytes,
1817 or
"g" for gigabytes. The default cache size is
"128m", or
128
1821 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.16</SPAN><A NAME=
"RootCertDuration">RootCertDuration
</A></H2>
1825 <PRE CLASS=
"command">
1831 RootCertDuration
300
1834 <H3>Description
</H3>
1836 <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>
1838 <P>The default is
<CODE>5m
</CODE> (five minutes).
</P>
1841 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.7</SPAN><A NAME=
"Satisfy">Satisfy
</A></H2>
1845 <PRE CLASS=
"command">
1846 <Location /path
>
1853 <H3>Description
</H3>
1855 <P>The
<CODE>Satisfy
</CODE> directive specifies whether all
1856 conditions must be satisfied to allow access to the resource. If
1857 set to
<CODE>all
</CODE>, then all authentication and access
1858 control conditions must be satisfied to allow access.
</P>
1860 <P>Setting
<CODE>Satisfy
</CODE> to
<CODE>any
</CODE> allows a user
1861 to gain access if the authentication or access control
1862 requirements are satisfied. For example, you might require
1863 authentication for remote access, but allow local access without
1866 <P>The default is
<CODE>all
</CODE>. This directive must appear
1867 inside a
<A HREF=
"#Location"><CODE>Location
</CODE></A> or
<A
1868 HREF=
"#Limit"><CODE>Limit
</CODE></A> section.
</P>
1871 <H2 CLASS=
"title"><A NAME=
"ServerAdmin">ServerAdmin
</A></H2>
1875 <PRE CLASS=
"command">
1876 ServerAdmin user@host
1877 ServerAdmin root@foo.bar.com
1880 <H3>Description
</H3>
1882 <P>The
<CODE>ServerAdmin
</CODE> directive identifies the email
1883 address for the administrator on the system. By default the
1884 administrator email address is
<CODE>root@server
</CODE>, where
1885 <CODE>server
</CODE> is the
<A
1886 HREF=
"#ServerName"><CODE>ServerName
</CODE></A>.
</P>
1889 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.3.10</SPAN><A NAME=
"ServerAlias">ServerAlias
</A></H2>
1893 <PRE CLASS=
"command">
1895 ServerAlias foo.example.com
1896 ServerAlias bar.example.com
1897 ServerAlias one.example.com two.example.com
1901 <H3>Description
</H3>
1903 <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>
1905 <BLOCKQUOTE><B>Note
</B>
1907 <P>The
<CODE>ServerAlias
</CODE> directive is used for HTTP Host header
1908 validation when clients connect to the scheduler from external interfaces.
1909 Using the special name
"*" can expose your system to known browser-based
1910 DNS rebinding attacks, even when accessing sites through a firewall. If the
1911 auto-discovery of alternate names does not work, we recommend listing each
1912 alternate name with a ServerAlias directive instead of using
"*".
</P>
1917 <H2 CLASS=
"title"><A NAME=
"ServerName">ServerName
</A></H2>
1921 <PRE CLASS=
"command">
1922 ServerName foo.example.com
1923 ServerName myserver.example.com
1926 <H3>Description
</H3>
1928 <P>The
<CODE>ServerName
</CODE> directive specifies the hostname
1929 that is reported to clients. By default the server name is the
1933 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.1.21</SPAN><A NAME=
"ServerTokens">ServerTokens
</A></H2>
1937 <PRE CLASS=
"command">
1939 ServerTokens ProductOnly
1942 ServerTokens Minimal
1947 <H3>Description
</H3>
1949 <P>The
<CODE>ServerTokens
</CODE> directive specifies the
1950 information that is included in the
<CODE>Server:
</CODE> header
1951 of all HTTP responses. Table
4 lists the token name along with
1952 the text that is returned. The default is
1953 <CODE>Minimal
</CODE>.
</P>
1955 <DIV CLASS=
"table"><TABLE SUMMARY=
"ServerToken Names and Values">
1956 <CAPTION>Table
4:
<A NAME=
"TABLE4">ServerToken Names and Values
</A></CAPTION>
1966 <TD>No
<CODE>Server:
</CODE> header is returned
</TD>
1969 <TD>ProductOnly
</TD>
1982 <TD>"CUPS 1.2.N" where N is the patch release
</TD>
1986 <TD>"CUPS 1.2.N (UNAME)" where N is the patch release and
1987 UNAME is the output of the
<B>uname(
1)
</B> command
</TD>
1991 <TD>"CUPS 1.2.N (UNAME) IPP/1.1" where N is the patch
1992 release and UNAME is the output of the
<B>uname(
1)
</B>
1999 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.2/OS X
10.5</SPAN><A NAME=
"SetEnv">SetEnv
</A></H2>
2003 <PRE CLASS=
"command">
2004 SetEnv PATH /usr/lib/cups/filter:/bin:/usr/bin:/usr/local/bin
2005 SetEnv MY_ENV_VAR foo
2008 <H3>Description
</H3>
2010 <P>The
<CODE>SetEnv
</CODE> directive specifies an environment
2011 variable that should be passed to child processes.
</P>
2014 <H2 CLASS=
"title"><A NAME=
"SSLListen">SSLListen
</A></H2>
2018 <PRE CLASS=
"command">
2019 SSLListen
127.0.0.1:
443
2020 SSLListen
192.0.2.1:
443
2023 <H3>Description
</H3>
2025 <P>The
<CODE>SSLListen
</CODE> directive specifies a network
2026 address and port to listen for secure connections. Multiple
2027 <CODE>SSLListen
</CODE> directives can be provided to listen on
2028 multiple addresses.
</P>
2030 <P>The
<CODE>SSLListen
</CODE> directive is similar to the
<A
2031 HREF=
"#SSLPort"><CODE>SSLPort
</CODE></A> directive but allows you
2032 to restrict access to specific interfaces or networks.
</P>
2035 <H2 CLASS=
"title"><A NAME=
"SSLOptions">SSLOptions
</A></H2>
2039 <PRE CLASS=
"command">
2041 SSLOptions NoEmptyFragments
2044 <H3>Description
</H3>
2046 <P>The
<CODE>SSLOptions
</CODE> directive specifies additional SSL/TLS
2047 protocol options to use for encrypted connected. Currently only two
2048 options are supported -
<code>None
</code> (the default) for the most
2049 secure mode and
<code>NoEmptyFragments
</code> to allow CUPS to work with
2050 Microsoft Windows with the FIPS conformance mode enabled.
</p>
2053 <H2 CLASS=
"title"><A NAME=
"SSLPort">SSLPort
</A></H2>
2057 <PRE CLASS=
"command">
2061 <H3>Description
</H3>
2063 <P>The
<CODE>SSLPort
</CODE> directive specifies a port to listen
2064 on for secure connections. Multiple
<CODE>SSLPort
</CODE> lines
2065 can be specified to listen on multiple ports.
</P>
2068 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.6</SPAN><A NAME=
"StrictConformance">StrictConformance
</A></H2>
2072 <PRE CLASS=
"command">
2073 StrictConformance No
2074 StrictConformance Yes
2077 <H3>Description
</H3>
2079 <P>The
<CODE>StrictConformance
</CODE> directive specifies whether the scheduler
2080 requires strict IPP conformance for client requests, for example to not allow
2081 document attributes in a Create-Job request. The default is
2082 <code>No
</code>.
</P>
2085 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.5</SPAN><A NAME=
"SubscriptionPrivateAccess">SubscriptionPrivateAccess
</A></H2>
2089 <PRE CLASS=
"command">
2090 SubscriptionPrivateAccess all
2091 SubscriptionPrivateAccess default
2092 SubscriptionPrivateAccess {user|@group|@ACL|@OWNER|@SYSTEM}+
2095 <H3>Description
</H3>
2097 <P>The
<CODE>SubscriptionPrivateAccess
</CODE> directive specifies the access list for a
2098 subscription's private values. The
"default" access list is
"@OWNER @SYSTEM".
2099 "@ACL" maps to the printer's requesting-user-name-allowed or
2100 requesting-user-name-denied values.
</P>
2102 <P>The
<CODE>SubscriptionPrivateAccess
</CODE> directive must appear inside a
<A
2103 HREF=
"#Policy"><CODE>Policy
</CODE></A> section.
</P>
2106 <H2 CLASS=
"title"><SPAN CLASS=
"info">CUPS
1.5</SPAN><A NAME=
"SubscriptionPrivateValues">SubscriptionPrivateValues
</A></H2>
2110 <PRE CLASS=
"command">
2111 SubscriptionPrivateValues all
2112 SubscriptionPrivateValues default
2113 SubscriptionPrivateValues none
2114 SubscriptionPrivateValues attribute-name-
1 [ ... attribute-name-N ]
2117 <H3>Description
</H3>
2119 <P>The
<CODE>SubscriptionPrivateValues
</CODE> directive specifies the list of
2120 subscription values to make private. The
"default" values are
"notify-events",
2121 "notify-pull-method",
"notify-recipient-uri",
"notify-subscriber-user-name", and
2122 "notify-user-data".
</P>
2124 <P>The
<CODE>SubscriptionPrivateValues
</CODE> directive must appear inside a
<A
2125 HREF=
"#Policy"><CODE>Policy
</CODE></A> section.
</P>
2128 <H2 CLASS=
"title"><A NAME=
"Timeout">Timeout
</A></H2>
2132 <PRE CLASS=
"command">
2140 <H3>Description
</H3>
2142 <P>The
<CODE>Timeout
</CODE> directive controls the amount of time
2143 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>
2145 <P>The default timeout is
<CODE>5m
</CODE> (five minutes).
</P>
2148 <H2 CLASS=
"title"><SPAN CLASS=
"INFO">CUPS
1.5</SPAN><A NAME=
"WebInterface">WebInterface
</A></H2>
2152 <PRE CLASS=
"command">
2157 <H3>Description
</H3>
2159 <P>The
<CODE>WebInterface
</CODE> directive specifies whether the web interface is enabled. The default value is
<CODE>@CUPS_WEBIF@
</CODE>.
</P>