Print this page
2837 - remove print/lp* from gate and use CUPS from userland
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/print/mod_ipp/httpd-standalone-ipp.conf
+++ new/usr/src/lib/print/mod_ipp/httpd-standalone-ipp.conf
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 27 #
28 28 # "$Id: httpd-standalone-ipp.conf,v 1.4 2006/03/24 00:26:54 njacobs Exp $"
29 29 #
30 30
31 31 # ident "%Z%%M% %I% %E% SMI"
32 32
33 33 ##
34 34 ## httpd-standalone-ipp.conf -- Apache HTTP server configuration file for
35 35 ## an Internet Print Protocol (IPP) listener
36 36 ##
37 37
38 38 #
39 39 # Based upon the NCSA server configuration files originally by Rob McCool.
40 40 #
41 41 # This is the main Apache server configuration file. It contains the
42 42 # configuration directives that give the server its instructions.
43 43 # See <URL:http://www.apache.org/docs/> for detailed information about
44 44 # the directives. mod_ipp specific directives are described in the
45 45 # mod_ipp(4) man page.
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
46 46 #
47 47
48 48 ### Section 1: Global Environment
49 49 #
50 50 # The directives in this section affect the overall operation of Apache,
51 51 # such as the number of concurrent requests it can handle or where it
52 52 # can find its configuration files.
53 53 #
54 54
55 55 #
56 -# ServerType is either inetd, or standalone. Inetd mode is only supported on
57 -# Unix platforms.
58 -#
59 -ServerType standalone
60 -
61 -#
62 56 # ServerRoot: The top of the directory tree under which the server's
63 57 # configuration, error, and log files are kept.
64 58 #
65 59 # NOTE! If you intend to place this on an NFS (or otherwise network)
66 60 # mounted filesystem then please read the LockFile documentation
67 61 # (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
68 62 # you will save yourself a lot of trouble.
69 63 #
70 -ServerRoot "/usr/apache"
64 +ServerRoot "/usr/apache2/2.2"
71 65
72 66 #
73 67 # The LockFile directive sets the path to the lockfile used when Apache
74 68 # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
75 69 # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
76 70 # its default value. The main reason for changing it is if the logs
77 71 # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
78 72 # DISK. The PID of the main server process is automatically appended to
79 73 # the filename.
80 74 #
81 75 #LockFile /var/run/httpd.lock
82 76 LockFile /var/run/httpd-standalone-ipp.lock
83 77
84 78 #
85 79 # PidFile: The file in which the server should record its process
86 80 # identification number when it starts.
87 81 #
88 82 PidFile /var/run/httpd-standalone-ipp.pid
89 83
90 84 #
91 85 # ScoreBoardFile: File used to store internal server process information.
92 86 # Not all architectures require this. But if yours does (you'll know because
93 87 # this file will be created when you run Apache) then you *must* ensure that
94 88 # no two invocations of Apache share the same scoreboard file.
95 89 #
96 90 ScoreBoardFile /var/run/httpd-standalone-ipp.scoreboard
97 91
98 92 #
99 93 # In the standard configuration, the server will process httpd.conf (this
100 94 # file, specified by the -f command line option), srm.conf, and access.conf
101 95 # in that order. The latter two files are now distributed empty, as it is
102 96 # recommended that all directives be kept in a single file for simplicity.
103 97 # The commented-out values below are the built-in defaults. You can have the
104 98 # server ignore these files altogether by using "/dev/null" (for Unix) or
105 99 # "nul" (for Win32) for the arguments to the directives.
106 100 #
107 101 #ResourceConfig conf/srm.conf
108 102 #AccessConfig conf/access.conf
109 103
110 104 #
111 105 # Timeout: The number of seconds before receives and sends time out.
112 106 #
113 107 Timeout 300
114 108
115 109 #
116 110 # KeepAlive: Whether or not to allow persistent connections (more than
117 111 # one request per connection). Set to "Off" to deactivate.
118 112 #
119 113 KeepAlive On
120 114
121 115 #
122 116 # MaxKeepAliveRequests: The maximum number of requests to allow
123 117 # during a persistent connection. Set to 0 to allow an unlimited amount.
124 118 # We recommend you leave this number high, for maximum performance.
125 119 #
126 120 MaxKeepAliveRequests 100
127 121
128 122 #
129 123 # KeepAliveTimeout: Number of seconds to wait for the next request from the
130 124 # same client on the same connection.
131 125 #
132 126 KeepAliveTimeout 15
133 127
134 128 #
135 129 # Server-pool size regulation. Rather than making you guess how many
136 130 # server processes you need, Apache dynamically adapts to the load it
137 131 # sees --- that is, it tries to maintain enough server processes to
138 132 # handle the current load, plus a few spare servers to handle transient
139 133 # load spikes (e.g., multiple simultaneous requests from a single
140 134 # Netscape browser).
141 135 #
142 136 # It does this by periodically checking how many servers are waiting
143 137 # for a request. If there are fewer than MinSpareServers, it creates
144 138 # a new spare. If there are more than MaxSpareServers, some of the
145 139 # spares die off. The default values are probably OK for most sites.
146 140 #
147 141 MinSpareServers 1
148 142 MaxSpareServers 2
149 143
150 144 #
151 145 # Number of servers to start initially --- should be a reasonable ballpark
152 146 # figure.
153 147 #
154 148 StartServers 1
155 149
156 150 #
157 151 # Limit on total number of servers running, i.e., limit on the number
158 152 # of clients who can simultaneously connect --- if this limit is ever
159 153 # reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
160 154 # It is intended mainly as a brake to keep a runaway server from taking
161 155 # the system with it as it spirals down...
162 156 #
163 157 MaxClients 150
164 158
165 159 #
166 160 # MaxRequestsPerChild: the number of requests each child process is
167 161 # allowed to process before the child dies. The child will exit so
168 162 # as to avoid problems after prolonged use when Apache (and maybe the
169 163 # libraries it uses) leak memory or other resources. On most systems, this
170 164 # isn't really needed, but a few (such as Solaris) do have notable leaks
171 165 # in the libraries. For these platforms, set to something like 10000
172 166 # or so; a setting of 0 means unlimited.
173 167 #
174 168 # NOTE: This value does not include keepalive requests after the initial
175 169 # request per connection. For example, if a child process handles
176 170 # an initial request and 10 subsequent "keptalive" requests, it
177 171 # would only count as 1 request towards this limit.
178 172 #
179 173 MaxRequestsPerChild 10
180 174
181 175 #
182 176 # Dynamic Shared Object (DSO) Support
183 177 #
184 178 # To be able to use the functionality of a module which was built as a DSO you
↓ open down ↓ |
104 lines elided |
↑ open up ↑ |
185 179 # have to place corresponding `LoadModule' lines at this location so the
186 180 # directives contained in it are actually available _before_ they are used.
187 181 # Please read the file http://httpd.apache.org/docs/dso.html for more
188 182 # details about the DSO mechanism and run `httpd -l' for the list of already
189 183 # built-in (statically linked and thus always available) modules in your httpd
190 184 # binary.
191 185 #
192 186 # Note: The order in which modules are loaded is important. Don't change
193 187 # the order below without expert advice.
194 188 #
195 -LoadModule access_module libexec/mod_access.so
196 189 LoadModule alias_module libexec/mod_alias.so
197 -LoadModule auth_module libexec/mod_auth.so
190 +LoadModule auth_basic_module libexec/mod_auth_basic.so
191 +LoadModule authn_file_module libexec/mod_authn_file.so
192 +LoadModule authz_host_module libexec/mod_authz_host.so
193 +LoadModule authz_user_module libexec/mod_authz_user.so
198 194 LoadModule mime_module libexec/mod_mime.so
199 195 LoadModule mime_magic_module libexec/mod_mime_magic.so
200 196 LoadModule ipp_module libexec/mod_ipp.so
201 197
202 -# Reconstruction of the complete module list from all available modules
203 -# (static and shared ones) to achieve correct module execution order.
204 -# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
205 -ClearModuleList
206 -AddModule mod_access.c
207 -AddModule mod_alias.c
208 -AddModule mod_auth.c
209 -AddModule mod_mime.c
210 -AddModule mod_mime_magic.c
211 -AddModule mod_ipp.c
212 -AddModule mod_so.c
213 -
214 198 ### Section 2: 'Main' server configuration
215 199 #
216 200 # The directives in this section set up the values used by the 'main'
217 201 # server, which responds to any requests that aren't handled by a
218 202 # <VirtualHost> definition. These values also provide defaults for
219 203 # any <VirtualHost> containers you may define later in the file.
220 204 #
221 205 # All of these directives may appear inside <VirtualHost> containers,
222 206 # in which case these default settings will be overridden for the
223 207 # virtual host being defined.
224 208 #
225 209
226 210 #
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
227 211 # If your ServerType directive (set earlier in the 'Global Environment'
228 212 # section) is set to "inetd", the next few directives don't have any
229 213 # effect since their settings are defined by the inetd configuration.
230 214 # Skip ahead to the ServerAdmin directive.
231 215 #
232 216
233 217 #
234 218 # Port: The port to which the standalone server listens. For
235 219 # ports < 1023, you will need httpd to be run as root initially.
236 220 #
237 -Port 631
221 +Listen 631
238 222
239 223 #
240 224 # If you wish httpd to run as a different user or group, you must run
241 225 # httpd as root initially and it will switch.
242 226 #
243 227 # User/Group: The name (or #number) of the user/group to run httpd as.
244 228 # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
245 229 # . On HPUX you may not be able to use shared memory as nobody, and the
246 230 # suggested workaround is to create a user www and use that user.
247 231 # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
248 232 # when the value of (unsigned)Group is above 60000;
249 233 # don't use Group nobody on these systems!
250 234 #
251 235 User lp
252 236 Group lp
253 237
254 238 #
255 239 # ServerAdmin: Your address, where problems with the server should be
256 240 # e-mailed. This address appears on some server-generated pages, such
257 241 # as error documents.
258 242 #
259 243 ServerAdmin lp@localhost
260 244
261 245 #
262 246 # ServerName allows you to set a host name which is sent back to clients for
263 247 # your server if it's different than the one the program would get (i.e., use
264 248 # "www" instead of the host's real name).
265 249 #
266 250 # Note: You cannot just invent host names and hope they work. The name you
267 251 # define here must be a valid DNS name for your host. If you don't understand
268 252 # this, ask your network administrator.
269 253 # If your host doesn't have a registered DNS name, enter its IP address here.
270 254 # You will have to access it by its address (e.g., http://123.45.67.89/)
271 255 # anyway, and this will make redirections work in a sensible way.
272 256 #
273 257 # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
274 258 # machine always knows itself by this address. If you use Apache strictly for
275 259 # local testing and development, you may use 127.0.0.1 as the server name.
276 260 #
277 261 #Servername printserver.some_company.com
278 262
279 263 DefaultType application/ipp
280 264
281 265 ErrorLog /var/lp/logs/ipp-errors
282 266 LogLevel warn
283 267
284 268 DocumentRoot /var/lp/ipp-listener
285 269
286 270 # Allow passing PPD files from this service as well
287 271 Alias /etc/lp/ppd/ /etc/lp/ppd/
288 272 <Directory /etc/lp/ppd>
289 273 SetHandler send-as-is
290 274 <LimitExcept GET>
291 275 Deny from all
292 276 </LimitExcept>
293 277 </Directory>
294 278
295 279 # mod_ipp specific configuration
296 280 <IfModule mod_ipp.c>
297 281
298 282 <Location />
299 283 # ipp-conformance automatic # default
300 284 # ipp-default-user nobody
301 285 ipp-default-service lpsched
302 286 #
303 287 # By default, only turn on operations that are not
304 288 # likely to cause real problems when the user can't
305 289 # be trusted.
306 290 #
307 291 ipp-operation all off
308 292 ipp-operation print-job on
309 293 ipp-operation validate-job on
310 294 ipp-operation create-job on
311 295 ipp-operation get-jobs on
312 296 ipp-operation get-printer-attributes on
313 297 ipp-operation send-document on
314 298 ipp-operation cancel-job on
315 299 ipp-operation get-job-attributes on
316 300 ipp-operation cups-get-default on
317 301 ipp-operation cups-get-printers on
318 302 ipp-operation cups-get-classes on
319 303 ipp-operation cups-move-job on
320 304
321 305 # redirect non-IPP requests
322 306 ErrorDocument 404 /index.html
323 307 </Location>
324 308
325 309 <Location /admin>
326 310 # ipp-conformance automatic # default
327 311 # ipp-default-user nobody
328 312 ipp-default-service lpsched
329 313
330 314 ipp-operation all on
331 315
332 316 AuthType Basic
333 317 AuthName "IPP Server"
334 318 AuthUserFile /etc/ipp-users
335 319 Require valid-user
336 320
337 321 # redirect non-IPP requests
338 322 ErrorDocument 404 /index.html
339 323 </Location>
340 324 </IfModule>
341 325
↓ open down ↓ |
94 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX