Giter VIP home page Giter VIP logo

portal-apache-web's Introduction

Europeana web & API Apache config

The buildpack defaults to the Apache configuration found in https://github.com/cloudfoundry/php-buildpack/tree/v3.2.2/defaults/config/httpd/2.4.x/extra, but can be overwritten by replacing the files in .bp-config/httpd/extra.

For example, to override httpd-default.conf you would create a file .bp-config/httpd/extra/httpd-default.conf

If you want to include an additional file, perhaps in .bp-config/httpd/extra/httpd-default.conf, include it with Include conf/extra/europeana.conf and store it in .bp-config/httpd/extra

PHP buildpack configuration documentation: https://docs.cloudfoundry.org/buildpacks/php/gsg-php-config.html

htdocs

This is your webroot, files in this location will be served by this Apache.

manifest.yml

This is the Cloud Foundry manifest to deploy Apache. No app name is set, so it must be specified when deploying:

cf push APP_NAME -f manifest.yml

Allow/disallow robots

To disallow robots to crawl the hosted properties, set the environment variable DISALLOW_ROBOTS=1.

Virtual hosts

Use environment variables to set the hostnames for each virtual host supported by this Apache:

  • WWW_HOST: www.europeana.eu
  • 1914_1918_HOST: www.europeana1914-1918.eu
  • 1914_1918_EMBED_HOST: embed.europeana1914-1918.eu
  • ANNOTATIONS_HOST: annotations.europeana.eu
  • DATA_HOST: data.europana.eu
  • ENTITIES_HOST: entity.europeana.eu
  • OLD_EXHIBITIONS_HOST: exhibitions.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.

www.europeana.eu reverse proxy

The www.europeana.eu virtual host reverse proxies a number of URL path patterns to other hosts, determined by the environment variables:

  • API_HOST: Europeana REST API
  • EXHIBITIONS_HOST: Europeana Virtual Exhibitions
  • PORTAL_HOST: Europeana Portal / Collections

portal-apache-web's People

Contributors

rwd avatar hugomanguinhas avatar rgardien avatar j-jeurissen avatar bramfoo avatar p-ehlert avatar cskodras avatar

Watchers

James Cloos avatar  avatar

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.