Imagine you want to publish a webapp from your intranet, without moving it from your internal server, just adding some
url to your existing external webserver and mapping it to the internal server, that is what mod_proxy does.
http://www.kraftek.com/orca/orcallator/
) , thanx to my vpn and mod_proxy.
First you have to compile apache to have proxy modules and friends:
# ./configure –enable-so –enable-mods-shared=”all proxy proxy_http proxy_ftp proxy_connect headers
deflate mod_deflate mod_ssl”
# make && make install
Get mod_proxy_html from http://apache.webthing.com/mod_proxy_html/, and build it into apache
# /usr/local/apache2/bin/apxs -c -I/usr/include/libxml2 -i mod_proxy_html.c
Edit your httpd.conf and, in my case, to map orca’s directory, I wrote this:
ProxyRequests off
ProxyPass /orca/ http://dell/orca/
<Location /orca/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /orca/
ProxyHTMLURLMap /orca /orca
RequestHeader unset Accept-Encoding
</Location>
voila!, got http://www.kraftek.com/orca/orcallator/ mapped to an internal machine called “dell”, now you can
see some pages from my internal machine!
I hated the fact that i needed to mirror the whole orca directory overnight… Now I don’t need to do that!
288/433