File: reverse_proxy

package info (click to toggle)
fex 20160919-2
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,944 kB
  • sloc: perl: 17,699; sh: 346; makefile: 67
file content (32 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
You can prosecute F*EX behind a reverse proxy, but then you are limited to
the capabilities of this proxy. For example, if you use apache, then you
have a 2 GB upload limitation and a throughput penality.

Example for apache reverse proxy:

On http://tandem-fahren.de:80  there is an apache
On http://tandem-fahren.de:488 there is a F*EX server
tandem-fahren.de has ip address 78.46.33.142

If you want to contact the F*EX server via alias URL
http://tandem-fahren.de/fex/ then you have to put in httpd.conf:

        Redirect      /fex /fex/
        ProxyRequests Off
        ProxyPass     /fex/ http://tandem-fahren.de:488/
        <Location /fex/>
          ProxyPassReverse   http://tandem-fahren.de:488/
          SetOutputFilter    proxy-html
          ProxyHTMLExtended  On
          ProxyHTMLURLMap    http://tandem-fahren.de:488/ /fex/
          ProxyHTMLURLMap    / /fex/
          ProxyHTMLURLMap    /fex/fex/fex/ /fex/
        </Location>

And write to lib/fex.ph :
	$hostname = 'tandem-fahren.de';
        $reverse_proxy_ip = '78.46.33.142';
        $durl = 'http://tandem-fahren.de/fex/fop';


See also: http://8d.no/fexproxy.html