This shows you the differences between two versions of the page.
|
documentation:1.2:internalproxy [2012/04/03 15:44] coudot |
documentation:1.2:internalproxy [2012/04/03 16:01] (current) coudot |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| + | |||
| + | The configuration is done in Apache, in a virtual host. | ||
| + | |||
| + | For example, to proxy https://www.public.com to http://www.private.com: | ||
| + | |||
| + | <file apache> | ||
| + | <VirtualHost> | ||
| + | ServerName www.public.com | ||
| + | |||
| + | PerlModule Lemonldap::NG::Handler::Proxy | ||
| + | SetHandler perl-script | ||
| + | PerlHandler Lemonldap::NG::Handler::Proxy | ||
| + | |||
| + | PerlSetVar LmProxyPass http://www.private.com/ | ||
| + | PerlSetVar LmLocationToReplace http://www.private.com/,https://www.public.com | ||
| + | PerlSetVar LmCookieDomainToReplace private.com,public.com | ||
| + | </VirtualHost> | ||
| + | </file> | ||
| + | |||
| + | Parameters: | ||
| + | * **LmProxyPass**: URL to relay HTTP requests | ||
| + | * **LmLocationToReplace**: string to replace in ''Location'' header | ||
| + | * **LmCookieDomainToReplace**: string to replace in ''Set-Cookie'' header | ||