Apache attic

Clone this repo:

Branches

  1. 22844ab Update to latest CSP by Sebb · 4 weeks ago main
  2. 2cc8c9f Prevent index.cgi being invoked by Sebb · 4 weeks ago
  3. 140fc3a Always apply CSP by Sebb · 5 weeks ago
  4. 538547c Allow for Javadoc frames by Sebb · 8 weeks ago
  5. a2e9213 Allow override of localhost by Sebb · 8 weeks ago

Docker build for testing Attic banner and CSP.

Build: docker compose build

Checkout the website to be tested in a spare directory, e.g.

  • git clone https://github.com/apache/xyz-site /path/to/repo or
  • svn co https://svn-master.apache.org/repos/asf/xyz/site/trunk/ /path/to/repo

Some sites are served from a subdir of the repository, e.g. /path/to/repo/content This is shown as /path/to/website in the following descriptions

To enable/disable the Attic banner, create/delete the directory: /path/to/website/_ATTIC

To process download cgi pages, you will need access to the closer_cgi/files directory in the private infrastructure-p6 repository. If not available, such pages will fail to load, but the site should otherwise work OK.

Start: [VAR_DYN=/path/to/closer_cgi/files] VAR_HTML=/path/to/website VAR_NAME=sitename docker compose up

browse to localhost:8000

Start shell (container must be running): docker compose exec attic_lua_csp /bin/bash

Restart httpd server docker compose exec attic_lua_csp apachectl restart

Stop httpd server (and the container): docker compose exec attic_lua_csp apachectl stop

To make changes to the CSP, edit the file config/000-default.conf#L30 Then rebuild the image (should be very quick) and restart.