You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stephane Eybert <mi...@yahoo.se> on 2012/01/20 11:47:21 UTC
[users@httpd] Compile Apache 2.2.21 with proxy-html
Hi,
I run Linux Mint 11 Katya and installed the libapache2-mod-proxy-html
library
stephane-ThinkPad-T43 stephane # apt-cache show libapache2-mod-proxy-html
Package: libapache2-mod-proxy-html
Priority: optional
Section: universe/web
Installed-Size: 144
Maintainer: Ubuntu MOTU Developers <ub...@lists.ubuntu.com>
Original-Maintainer: Emmanuel Lacour <el...@home-dn.net>
Architecture: i386
Source: mod-proxy-html
Version: 3.0.1-1
Depends: libc6 (>= 2.4), apache2, apache2.2-common, libxml2 (>> 2.5.10)
Filename:
pool/universe/m/mod-proxy-html/libapache2-mod-proxy-html_3.0.1-1_i386.deb
Size: 27002
MD5sum: 4b7d5141b84259ace3041c532ece7153
SHA1: d3c47fa4f8f614ddd3e543a36a15cfb347f979b7
SHA256: 6a8497d5f741da67f33abe44152a80b7a79c4d297d2c31790dd60887013e4e74
Description: Apache2 filter module for HTML links rewriting
mod_proxy_html is an output filter to rewrite HTML links in a proxy
situation, to ensure that links work for users outside the proxy. It
serves the same purpose as Apache's ProxyPassReverse directive does for
HTTP headers, and is an essential component of a reverse proxy.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Now, I'm trying to compile my Apache httpd-2.2.21 with it:
stephane@stephane-ThinkPad-T43:httpd-2.2.21> ./configure
--prefix=/home/stephane/programs/install/apache --enable-module=so
--enable-libgcc --enable-module=most --enable-shared=max
--enable-module=rewrite --enable-proxy --enable-proxy-http
--enable-proxy-html --enable-proxy-connect --enable-proxy-balancer
--enable-proxy-ajp
The configure, make and make install run fine without any error messages.
But the module is no where to be seen:
stephane@stephane-ThinkPad-T43:~>
/home/stephane/programs/install/apache/bin/httpd -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_version.c
mod_proxy.c
mod_proxy_connect.c
mod_proxy_ftp.c
mod_proxy_http.c
mod_proxy_scgi.c
mod_proxy_ajp.c
mod_proxy_balancer.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c
stephane@stephane-ThinkPad-T43:~>
And when I try to start Apache, I get an error for a directive that is not
understood:
stephane@stephane-ThinkPad-T43:~>
/home/stephane/programs/install/apache/bin/apachectl start
Syntax error on line 435 of
/home/stephane/programs/install/apache/conf/httpd.conf:
Invalid command 'ProxyHTMLURLMAP', perhaps misspelled or defined by a module
not included in the server configuration
My understanding, is that this directive is supposed to be parsed by the
proxy-html module and this latter has not been compiled into Apache.
Is it a correct diagnostic ?
Any way to solve this issue ?
Stephane
--
View this message in context: http://old.nabble.com/Compile-Apache-2.2.21-with-proxy-html-tp33173580p33173580.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Compile Apache 2.2.21 with proxy-html
Posted by Stephane Eybert <mi...@yahoo.se>.
I just tried that, but failed to compile mod_proxy_html and so I copied all
the mod_proxy_....so module files into my specifix prefix directory and
added the LoadModule directives and can now start apache just fine. Thanks.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
--
View this message in context: http://old.nabble.com/Compile-Apache-2.2.21-with-proxy-html-tp33173580p33173833.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Compile Apache 2.2.21 with proxy-html
Posted by Eric Covener <co...@gmail.com>.
On Fri, Jan 20, 2012 at 6:16 AM, Stephane Eybert <mi...@yahoo.se> wrote:
>
> How can I install an apache module from source then ?
>
> I thought specifying the module as an option on the configure command was
> enough.
mod_proxy_html isn't part of the base 2.2.x distribution. If you want
to compile your own, you'll have to download it separately.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Compile Apache 2.2.21 with proxy-html
Posted by Stephane Eybert <mi...@yahoo.se>.
How can I install an apache module from source then ?
I thought specifying the module as an option on the configure command was
enough.
--
View this message in context: http://old.nabble.com/Compile-Apache-2.2.21-with-proxy-html-tp33173580p33173708.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Compile Apache 2.2.21 with proxy-html
Posted by Tom Evans <te...@googlemail.com>.
On Fri, Jan 20, 2012 at 10:47 AM, Stephane Eybert
<mi...@yahoo.se> wrote:
>
> Hi,
>
> I run Linux Mint 11 Katya and installed the libapache2-mod-proxy-html
> library
>
> stephane-ThinkPad-T43 stephane # apt-cache show libapache2-mod-proxy-html
> Package: libapache2-mod-proxy-html
> [... ]
>
This installs mod_proxy_html into the system apache modules directory.
> Now, I'm trying to compile my Apache httpd-2.2.21 with it:
>
>
>
> stephane@stephane-ThinkPad-T43:httpd-2.2.21> ./configure
> --prefix=/home/stephane/programs/install/apache --enable-module=so
> --enable-libgcc --enable-module=most --enable-shared=max
> --enable-module=rewrite --enable-proxy --enable-proxy-http
> --enable-proxy-html --enable-proxy-connect --enable-proxy-balancer
> --enable-proxy-ajp
>
This installs a custom build of apache into the specified prefix.
> The configure, make and make install run fine without any error messages.
>
> But the module is no where to be seen:
>
This is because it is installed into a different location.
I don't understand why you are installing an apache module from your
distribution, and apache itself from source. Either install both from
source, or install both from your distribution.
Cheers
Tom
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Compile Apache 2.2.21 with proxy-html
Posted by Luke Meyer <lm...@vmware.com>.
> Description: Apache2 filter module for HTML links rewriting
> mod_proxy_html is an output filter to rewrite HTML links in a proxy
> situation, to ensure that links work for users outside the proxy. It
> serves the same purpose as Apache's ProxyPassReverse directive does for
> HTTP headers, and is an essential component of a reverse proxy.
> Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> Origin: Ubuntu
BTW, I take issue with that description. It's not "an essential component of a reverse proxy"; it's what you use in desperation if you really need your proxy to present a different path than the backend, or the backend generates content with absolute links to its own server address (naughty!). And you still may have problems if the content generated is sufficiently sophisticated (e.g.: JavaScript which creates self-ref links dynamically) that mod_proxy_html can't address it. Truly a last resort - much better if you can just do:
ProxyPass /foo http://backend/foo
ProxyPassReverse /foo http://backend/foo
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org