====== Reverse proxy (http) ======
* **Reverse proxy http**
apt-get install apache2
a2dismod actions auth_basic authn_file authz_groupfile authz_user
a2enmod cache proxy proxy_http proxy_ajp
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/000-default.conf.ORI
nano -w /etc/apache2/sites-available/000-default.conf
ServerName repo.digibess.eu
ServerAdmin webmaster@localhost
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
AllowEncodedSlashes On
ProxyPreserveHost On
ProxyRequests Off
Order deny,allow
Deny from all
# back-end front-end image-server IP
Allow from 150.145.48.49 2a00:1620::49 150.145.48.48 2a00:1620::48 127.0.0.1 ::1 195.32.41.170 150.145.48.55 2a00:1620::55
### Could be useful for tile source redirect when IIIF-server or Djatoka cannot connect directly to Fedora
ProxyPass /fedora ajp://localhost:8009/fedora
ProxyPassReverse /fedora ajp://localhost:8009/fedora
#A# OK BE-FreeLib
### ProxyPass "/djatoka/" "http://localhost:8888/"
### ProxyPassReverse "/djatoka/" "http://localhost:8888/"
#B# OK BE-adore
### ProxyPass "/djatoka/" "http://localhost:8081/adore-djatoka/"
### ProxyPassReverse "/djatoka/" "http://localhost:8081/adore-djatoka/"
### ajp
### ProxyPass "/djatoka/" "ajp://localhost:8010/adore-djatoka/"
### ProxyPassReverse "/djatoka/" "ajp://localhost:8010/adore-djatoka/"
service apache2 restart
\\
\\