-
Notifications
You must be signed in to change notification settings - Fork 0
Proxy httpd english version
nilsw-ra edited this page Jan 12, 2023
·
3 revisions
This configuration creates a reverse proxy where /iiif/ is the proxy address for https://lbiiif.riksarkivet.se/
SSLProxyEngine on
ProxyPass "/iiif" "https://lbiiif.riksarkivet.se"
ProxyPassReverse "/iiif" "https://lbiiif.riksarkivet.se"
# CORS header added to response
Header set Access-Control-Allow-Origin "*"
# Custom User-Agent
RequestHeader set User-Agent "Riksarkivet Proxy Example httpd/1.0"
# Disable Do Not Track so requests through the proxyn can be logged for statistics
RequestHeader set DNT "0"
The modules mod_proxy, mod_proxy_http and mod_ssl must be activated.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so
There is a pre-configured instance of Apache HTTP Server in Docker/Docker-compose in this repo at
https://github.com/Riksarkivet/dataplattform/tree/main/docs/examples/iiif_reverse_proxy/httpd
NB: this is a minimal configuration, not a complete web server setup.