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
<VirtualHost *:80>
        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

        <Proxy *>
                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
        </Proxy>

###   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/"

</VirtualHost>
service apache2 restart



 
 
reloaded/be_revp.txt ยท Last modified: 2018/04/09 21:42 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki