File: apache-vhost

package info (click to toggle)
libreverseproxy-formfiller-perl 0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: perl: 157; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ReverseProxy::FormFiller apache2 vhost example
# Put this file into /etc/apache2/sites-available/ and adapt it

<VirtualHost *>
  ServerName myauth.example.com

  ProxyPass        / http://auth.example.com/
  ProxyPassReverse / http://auth.example.com/

  # previous directives are not linked to ReverseProxy::FormFiller
  # following directives are specific to ReverseProxy::FormFiller

  PerlModule ReverseProxy::FormFiller
  PerlSetVar FormFillerParamFile "/etc/apache2/FormFiller/example"

  <Location /login.php>
    RequestHeader unset Accept-Encoding
    PerlOutputFilterHandler ReverseProxy::FormFiller::output
  </Location>

  <Location /login/>
    PerlInputFilterHandler  ReverseProxy::FormFiller::input
  </Location>
</VirtualHost>