43bc97b3aab5330d45564fc7a133be70f53baed7
[via-proxy] / ssl.conf
1
2         SSLEngine on
3         SSLCertificateFile      /etc/letsencrypt/live/proxy.knjiznice.ffzg.hr/cert.pem
4         SSLCertificateKeyFile   /etc/letsencrypt/live/proxy.knjiznice.ffzg.hr/privkey.pem
5         SSLCertificateChainFile /etc/letsencrypt/live/proxy.knjiznice.ffzg.hr/chain.pem
6
7 <Location />
8
9         Order deny,allow
10         # allow local subnets
11         Allow from 193.198.212 193.198.213 193.198.214 193.198.215 
12         deny from all
13         # file is htpasswd as first try and ldap as second
14         AuthBasicProvider file ldap
15         AuthType basic
16         AuthUserFile /data/proxy/.htpasswd
17         AuthName "[ UPUTA: za pristup se koristi AAI korisnicki racun dobiven na FFZG. ]"
18
19         AuthLDAPURL "ldaps://ldap.ffzg.hr/dc=ffzg,dc=hr?hrEduPersonUniqueID?"
20
21         Require valid-user 
22         satisfy any
23
24
25         # ProxyAddHeaders needs to be inside location to make them work!
26         ProxyAddHeaders off
27
28 </Location>
29
30 # don't pass through authorization header!
31 RequestHeader unset Authorization
32
33 # http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#request-bodies
34 #SetEnv proxy-sendcl 1
35 #SetEnv proxy-sendchunked 1