| 1 |
# ReverseProxy::FormFiller apache2 vhost example |
| 2 |
# Put this file into /etc/apache2/sites-available/ and adapt it |
| 3 |
|
| 4 |
<VirtualHost *> |
| 5 |
ServerName myauth.example.com |
| 6 |
|
| 7 |
ProxyPass / http://auth.example.com/ |
| 8 |
ProxyPassReverse / http://auth.example.com/ |
| 9 |
|
| 10 |
# previous directives are not linked to ReverseProxy::FormFiller |
| 11 |
# following directives are specific to ReverseProxy::FormFiller |
| 12 |
|
| 13 |
PerlModule ReverseProxy::FormFiller |
| 14 |
PerlSetVar FormFillerParamFile "/etc/apache2/FormFiller/example" |
| 15 |
|
| 16 |
<Location /login.php> |
| 17 |
RequestHeader unset Accept-Encoding |
| 18 |
PerlOutputFilterHandler ReverseProxy::FormFiller::output |
| 19 |
</Location> |
| 20 |
|
| 21 |
<Location /login/> |
| 22 |
PerlInputFilterHandler ReverseProxy::FormFiller::input |
| 23 |
</Location> |
| 24 |
</VirtualHost> |