Giter VIP home page Giter VIP logo

httpd-docker's Introduction

httpd-docker

version) image size linting license

Overview

This docker image contains httpd with cgi, eruby, php, and python.

Embedded Samples

This image has embedded sample scripts that can be used to test the deployment of a container, and the running configuration of httpd. This functionality is defined in /etc/apache2/vhost.d/hello. An autoindex listing of the scripts directory is available under /hello.

Entrypoint Scripts

httpd

The embedded entrypoint script is located at /etc/entrypoint.d/httpd and performs the following actions:

  1. The PKI certificates are generated or imported.

httpd-cleanup

The embedded entrypoint script is located at /etc/entrypoint.d/httpd-cleanup and performs the following actions:

  1. The contents under /run/apache2/ are purged.

Standard Configuration

Container Layout

/
├─ etc/
│  ├─ apache2/
│  │  └─ vhosts.d/
│  │     └─ hello
│  ├─ entrypoint.d/
│  │  ├─ httpd
│  │  └─ httpd-cleanup
│  ├─ healthcheck.d/
│  │  ├─ apache2
│  │  └─ php
│  └─ supervisor/
│     └─ config.d/
│        ├─ apache2.conf
│        ├─ fcgi.conf
│        └─ php.conf
├─ run/
│  └─ secrets/
│     ├─ httpd.crt
│     ├─ httpd.key
│     └─ httpdca.crt
├─ usr/
│  └─ lib/
│     └─ cgi-bin/
└─ var/
   └─ www/
      ├─ hello/
      │  ├─ hello.cgi
      │  ├─ hello.erb
      │  ├─ hello.html
      │  ├─ hello.php
      │  ├─ hello.pl
      │  ├─ hello.py
      │  └─ hello.rb
      └─ html/

Exposed Ports

  • 80/tcp - insecure httpd listening port.
  • 443/tcp - secure httpd listening port.

Volumes

None.

Development

Source Control

httpd-docker's People

Contributors

crashvb avatar

Watchers

 avatar  avatar

httpd-docker's Issues

docker-apt-install fails due to /etc/os-release changes.

The current implementation of docker-apt-install retrieves the code name from /etc/os-release as follows:

codename=$(cat /etc/os-release | grep CODENAME | awk -F= '{print $2}')

The new docker image was changed to include the UBUNTU_CODENAME property as well:

$ cat /etc/os-release NAME="Ubuntu" VERSION="16.04.1 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.1 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial

As both the VERSION_CODENAME and UBUNTU_CODENAME lines are matched, xenial\nxenial is injected into /etc/apt/sources.list causing a failure.

Change the value of AuthnCacheContext?

Thanks for providing the container! I have a question about one httpd config:AuthnCacheContext.
It seems the official document recommends to change the default directory, which is conservative and not optimal. A better policy is to name the AuthnCacheContext for the password provider: for example a htpasswd file or database table.

Maybe it's better to set that to specify a context string for use in the cache keyin the comfig file? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.