Based on the official httpd Docker image.
To disallow robots to crawl the hosted properties, set the environment
variable DISALLOW_ROBOTS=1
.
Use environment variables to set the hostnames for each virtual host supported by this Apache:
ANNOTATIONS_HOST
: annotations.europeana.euDATA_HOST
: data.europana.euOLD_EXHIBITIONS_HOST
: exhibitions.europeana.euSTYLEGUIDE_HOST
: style.europeana.euWWI_EMBED_HOST
: embed.europeana1914-1918.euWWW_HOST
: www.europeana.eu
The above are the expected production values for these hosts, which still need to be set in environment variables, but you may wish to set them to other values in test / staging environments.
The www.europeana.eu virtual host reverse proxies a number of URL path patterns to other hosts, determined by the environment variables:
API_HOST
: Record APIANNOTATIONS_HOST
: Annotation APIENTITIES_HOST
: Entity APIFULLTEXT_HOST
: Full text APIPORTAL_PROXY_URL
: Europeana Collections Portal (full URL)THUMBNAIL_HOST
: Thumbnail APISITEMAP_HOST
: Sitemap API
Static documents are served from htdocs/www.europeana.eu
Linked data content negotiation.
Static documents are served from htdocs/data.europeana.eu
Redirects for legacy Exhibitions site.
Serving static style assets.
Redirects for legacy 1914-1918 site.
WWI_EMBED_HOST
: 1914-1918 app.
export VERSION=20190625
docker build -t europeana/portal-apache:${VERSION} .
docker run \
-p 8080:80 \
--env-file=.env \
--name europeana-portal-apache \
europeana/portal-apache:${VERSION}
docker push europeana/portal-apache:${VERSION}
Licensed under the EUPL v1.2.
For full details, see LICENSE.md.