RE: [soaplite] tunneling through apache mod_proxy
- When you create the SOAP server you can specify host and port options.
Below is a small segment from the examples/server/soap.daemon file (slightly
tweaked to work for you) which will cause your server to only listen on the
my $daemon = SOAP::Transport::HTTP::Daemon
# if you do not specify LocalAddr then you can access it with
# any hostname/IP alias, including localhost or 127.0.0.1.
# if do you specify LocalAddr in ->new() then you can only access it
# from that interface. -- Michael Percy <mpercy@...>
-> new (LocalAddr => 'localhost', LocalPort => 10000, Reuse => 1)
# you may also add other options, like 'Reuse' => 1 and/or 'Listen' =>
From: Tilman Baumann [mailto:Tilman.Baumann@...]
Sent: Wednesday, October 27, 2004 4:17 AM
Subject: [soaplite] tunneling through apache mod_proxy
i'm using the transport HTTP::Daemon because cgi would not fit my demands.
Currently i have HTTP::Daemon running on port 10000 and make it
accessablae through my webserver with mod_proxy.
ProxyPass /soap http://127.0.0.1:10000/
This runs perfect so far.
But now i have still running my deamon on port 10000. Is there any way
to bind this deamon just on the lo interface? So that all remote
connections have to come through apache.
Tank you for your help.