308 | # container, that host's errors will be logged there and not here.
309 | #
310 | ErrorLog /proc/self/fd/2
311 |
312 | #
313 | # LogLevel: Control the number of messages logged to the error_log.
314 | # Possible values include: debug, info, notice, warn, error, crit,
315 | # alert, emerg.
316 | #
317 | LogLevel warn
318 |
319 |
320 | #
321 | # The following directives define some format nicknames for use with
322 | # a CustomLog directive (see below).
323 | #
324 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
325 | LogFormat "%h %l %u %t \"%r\" %>s %b" common
326 |
327 |
328 | # You need to enable mod_logio.c to use %I and %O
329 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
330 |
331 |
332 | #
333 | # The location and format of the access logfile (Common Logfile Format).
334 | # If you do not define any access logfiles within a
335 | # container, they will be logged here. Contrariwise, if you *do*
336 | # define per- access logfiles, transactions will be
337 | # logged therein and *not* in this file.
338 | #
339 | CustomLog /proc/self/fd/1 common
340 |
341 | #
342 | # If you prefer a logfile with access, agent, and referer information
343 | # (Combined Logfile Format) you can use the following directive.
344 | #
345 | #CustomLog "logs/access_log" combined
346 |
347 |
348 |
349 | #
350 | # Redirect: Allows you to tell clients about documents that used to
351 | # exist in your server's namespace, but do not anymore. The client
352 | # will make a new request for the document at its new location.
353 | # Example:
354 | # Redirect permanent /foo http://www.example.com/bar
355 |
356 | #
357 | # Alias: Maps web paths into filesystem paths and is used to
358 | # access content that does not live under the DocumentRoot.
359 | # Example:
360 | # Alias /webpath /full/filesystem/path
361 | #
362 | # If you include a trailing / on /webpath then the server will
363 | # require it to be present in the URL. You will also likely
364 | # need to provide a section to allow access to
365 | # the filesystem path.
366 |
367 | #
368 | # ScriptAlias: This controls which directories contain server scripts.
369 | # ScriptAliases are essentially the same as Aliases, except that
370 | # documents in the target directory are treated as applications and
371 | # run by the server when requested rather than as documents sent to the
372 | # client. The same rules about trailing "/" apply to ScriptAlias
373 | # directives as to Alias.
374 | #
375 | ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
376 |
377 |
378 |
379 |
380 | #
381 | # ScriptSock: On threaded servers, designate the path to the UNIX
382 | # socket used to communicate with the CGI daemon of mod_cgid.
383 | #
384 | #Scriptsock cgisock
385 |
386 |
387 | #
388 | # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
389 | # CGI directory exists, if you have that configured.
390 | #
391 |
392 | AllowOverride None
393 | Options None
394 | Require all granted
395 |
396 |
397 |
398 | #
399 | # Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
400 | # backend servers which have lingering "httpoxy" defects.
401 | # 'Proxy' request header is undefined by the IETF, not listed by IANA
402 | #
403 | RequestHeader unset Proxy early
404 |
405 |
406 |
407 | #
408 | # TypesConfig points to the file containing the list of mappings from
409 | # filename extension to MIME-type.
410 | #
411 | TypesConfig conf/mime.types
412 |
413 | #
414 | # AddType allows you to add to or override the MIME configuration
415 | # file specified in TypesConfig for specific file types.
416 | #
417 | #AddType application/x-gzip .tgz
418 | #
419 | # AddEncoding allows you to have certain browsers uncompress
420 | # information on the fly. Note: Not all browsers support this.
421 | #
422 | #AddEncoding x-compress .Z
423 | #AddEncoding x-gzip .gz .tgz
424 | #
425 | # If the AddEncoding directives above are commented-out, then you
426 | # probably should define those extensions to indicate media types:
427 | #
428 | AddType application/x-compress .Z
429 | AddType application/x-gzip .gz .tgz
430 |
431 | #
432 | # AddHandler allows you to map certain file extensions to "handlers":
433 | # actions unrelated to filetype. These can be either built into the server
434 | # or added with the Action directive (see below)
435 | #
436 | # To use CGI scripts outside of ScriptAliased directories:
437 | # (You will also need to add "ExecCGI" to the "Options" directive.)
438 | #
439 | #AddHandler cgi-script .cgi
440 |
441 | # For type maps (negotiated resources):
442 | #AddHandler type-map var
443 |
444 | #
445 | # Filters allow you to process content before it is sent to the client.
446 | #
447 | # To parse .shtml files for server-side includes (SSI):
448 | # (You will also need to add "Includes" to the "Options" directive.)
449 | #
450 | #AddType text/html .shtml
451 | #AddOutputFilter INCLUDES .shtml
452 |
453 |
454 | #
455 | # The mod_mime_magic module allows the server to use various hints from the
456 | # contents of the file itself to determine its type. The MIMEMagicFile
457 | # directive tells the module where the hint definitions are located.
458 | #
459 | #MIMEMagicFile conf/magic
460 |
461 | #
462 | # Customizable error responses come in three flavors:
463 | # 1) plain text 2) local redirects 3) external redirects
464 | #
465 | # Some examples:
466 | #ErrorDocument 500 "The server made a boo boo."
467 | #ErrorDocument 404 /missing.html
468 | #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
469 | #ErrorDocument 402 http://www.example.com/subscription_info.html
470 | #
471 |
472 | #
473 | # MaxRanges: Maximum number of Ranges in a request before
474 | # returning the entire resource, or one of the special
475 | # values 'default', 'none' or 'unlimited'.
476 | # Default setting is to accept 200 Ranges.
477 | #MaxRanges unlimited
478 |
479 | #
480 | # EnableMMAP and EnableSendfile: On systems that support it,
481 | # memory-mapping or the sendfile syscall may be used to deliver
482 | # files. This usually improves server performance, but must
483 | # be turned off when serving from networked-mounted
484 | # filesystems or if support for these functions is otherwise
485 | # broken on your system.
486 | # Defaults: EnableMMAP On, EnableSendfile Off
487 | #
488 | #EnableMMAP off
489 | #EnableSendfile on
490 |
491 | # Supplemental configuration
492 | #
493 | # The configuration files in the conf/extra/ directory can be
494 | # included to add extra features or to modify the default configuration of
495 | # the server, or you may simply copy their contents here and change as
496 | # necessary.
497 |
498 | # Server-pool management (MPM specific)
499 | #Include conf/extra/httpd-mpm.conf
500 |
501 | # Multi-language error messages
502 | #Include conf/extra/httpd-multilang-errordoc.conf
503 |
504 | # Fancy directory listings
505 | #Include conf/extra/httpd-autoindex.conf
506 |
507 | # Language settings
508 | #Include conf/extra/httpd-languages.conf
509 |
510 | # User home directories
511 | #Include conf/extra/httpd-userdir.conf
512 |
513 | # Real-time info on requests and configuration
514 | #Include conf/extra/httpd-info.conf
515 |
516 | # Virtual hosts
517 | #Include conf/extra/httpd-vhosts.conf
518 |
519 | # Local access to the Apache HTTP Server Manual
520 | #Include conf/extra/httpd-manual.conf
521 |
522 | # Distributed authoring and versioning (WebDAV)
523 | #Include conf/extra/httpd-dav.conf
524 |
525 | # Various default settings
526 | #Include conf/extra/httpd-default.conf
527 |
528 | # Configure mod_proxy_html to understand HTML4/XHTML1
529 |
530 | Include conf/extra/proxy-html.conf
531 |
532 |
533 | # Secure (SSL/TLS) connections
534 | #Include conf/extra/httpd-ssl.conf
535 | #
536 | # Note: The following must must be present to support
537 | # starting without SSL on platforms with no /dev/random equivalent
538 | # but a statically compiled-in mod_ssl.
539 | #
540 |
541 | SSLRandomSeed startup builtin
542 | SSLRandomSeed connect builtin
543 |
544 |
545 |
--------------------------------------------------------------------------------
/container/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | docker-1c-ws
6 |
7 |
8 | docker-1c-ws
9 | Веб-сервер для 1С:Предприятия в контейнере Docker
10 |
GitHub repository
11 |
12 |
13 |
--------------------------------------------------------------------------------
/container/webinst:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | /opt/1C/v8.3/x86_64/webinst $@
4 |
--------------------------------------------------------------------------------
/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | docker run --name 1c-ws \
4 | --net host \
5 | --detach \
6 | --volume 1c-ws-data:/data \
7 | --volume 1c-ws-httpd-conf:/usr/local/apache2/conf \
8 | --volume /etc/localtime:/etc/localtime:ro \
9 | alexanderfefelov/1c-ws
10 |
--------------------------------------------------------------------------------