You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nes Yarug <ne...@gmail.com> on 2006/07/19 21:55:18 UTC
[users@httpd] balancer proxy with http and https
Hi,
I've been trying to configure Apache's balancer proxy, but have not had any
luck. I've been trying to configure a load balancing proxy that forwards
requests to 2 web servers. I want both http and https requests to be
forwarded.
I started with the following configuration in /etc/apache/httpd.conf:
ProxyPass /awstats !
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ stickysession=jsessionid
ProxyPreserveHost On
<Proxy balancer://mycluster/>
BalancerMember http://192.168.0.2:80
BalancerMember http://192.168.0.3:80
</Proxy>
This worked fine, but ofcourse not for https requests. I then removed the
above configuration from httpd.conf and placed it in the default vhost
configuration at /etc/apache2/vhosts.d/00_default_vhost.conf:
ProxyPass /awstats !
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ stickysession=jsessionid
ProxyPreserveHost On
<Proxy balancer://mycluster/>
BalancerMember http://192.168.0.2:80
BalancerMember http://192.168.0.3:80
</Proxy>
I then configured the default ssl virtual host simularly
(/etc/apache2/modules.d/41_mod_ssl.default-vhost.conf):
ProxyPass / balancer://mysslcluster/ stickysession=jsessionid
ProxyPreserveHost On
<Proxy balancer://mysslcluster/>
BalancerMember https://192.168.0.2:443
BalancerMember https://192.168.0.3:443
</Proxy>
But now I cannot get my requests to the balancer handled by one of the web
servers (i.e. the request is not forwarded). An http request is forwarded to
the web servers, but an https request is giving an Internal Server Error.
Can someone please comment on the above configuration and tell me what I'm
doing wrong?
Many thanks,
Nes
Re: [users@httpd] Apache 2.2.2 and WebSphere PlugIn
Posted by Alexander Lazic <al...@none.at>.
On Don 20.07.2006 10:19, Manuela.Vorazzo@ssb.it wrote:
>
>The permission bits for allthe plugin directory are 755.
>I'm on Z/linux. But it is the same as in another suse linux version.
Is this the 64 or the 31 bit version?!
>My question is if with a compiled apache (and then I don't load modules
>dinamically and I've no modules loaded with Load Module) I can use the
>LoadModule directive.
Yes if you have the same Bit version e.g.:
64 => 64 ok
31 => 31 ok
64 => 31 nok as i know.
>If yes then probably then probably the WebSphere PlugIn was compiled
>with some options that are not compatible with the ones I've used to
>compile apache.
What say a file to the so-file and to the httpd-bin?
BTW: What does IBM mean to his issuse because they wan't to force the
Z/Linux therefore you could get help at this time from this vendor
;-)
Regards
Alex
---------------------------------------------------------------------
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] Apache 2.2.2 and WebSphere PlugIn
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Qingshan Xie wrote:
> If the Apache-2.2.2 compiled with mod_so, Apache
> should be able to load mod_was_ap20_http.so without
> any issue.
Not likely. First, there is a module signature of "AP20" in any
module which was compiled under apache 2.0, which absolutely will
not load under apache 2.2 (the new signature, surprisingly enough,
is "AP22"). Second, there are subtle and not-so-subtle binary ABI
changes between httpd 2.0 (including apr 0.9) and httpd 2.2
(including apr 1.x). Those changes really invalidated any apache2.0
compilation for use with apache 2.2.
The warning that Apache 2.0 modules aren't compatible with 2.2 is
plastered almost everywhere. What file/document is missing this so
that we can improve user's understanding of this problem?
Bill
---------------------------------------------------------------------
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] Apache 2.2.2 and WebSphere PlugIn
Posted by Qingshan Xie <xi...@yahoo.com>.
If the Apache-2.2.2 compiled with mod_so, Apache
should be able to load mod_was_ap20_http.so without
any issue. I think you need to check the permission
bits not only the sub-directory of plugin, but all the
path up to /opt/CHROOT/. You may also need to set the
sticky bit.
Q.Xie
--- Manuela.Vorazzo@ssb.it wrote:
> The permission bits for allthe plugin directory are
> 755.
> I'm on Z/linux. But it is the same as in another
> suse linux version.
>
> My question is if with a compiled apache (and then
> I don't load modules
> dinamically and I've no modules loaded with Load
> Module) I can use the
> LoadModule directive.
> If yes then probably then probably the WebSphere
> PlugIn was compiled with
> some options that are not compatible with the ones
> I've used to compile
> apache.
>
> manuciao
>
>
>
> Alexander Lazic <al...@none.at>
> 20/07/2006 10.10
> Please respond to
> users@httpd.apache.org
>
>
> To
> users@httpd.apache.org
> cc
>
> Subject
> Re: [users@httpd] Apache 2.2.2 and WebSphere PlugIn
>
>
>
>
>
>
> On Don 20.07.2006 10:01, Manuela.Vorazzo@ssb.it
> wrote:
> >I'm using a Linux Suse 9.
> >I would like to use the plugin because it was
> written for balancing
> >throught WebSphere Application Server and I think
> that if I have a
> >WebSphere Application server on backend it would
> be better using its
> >plugin to reverse requests.
>
> Ok thanks for explanation.
>
> >Alexander Lazic wrote:
> >>On Don 20.07.2006 09:39, Manuela.Vorazzo@ssb.it
> wrote:
> >
> >>But now when I run the command 'apachectl -t' I
> get the following:
> >>
> >>httpd: Syntax error on line 225 of
> >>/opt/CHROOT/HTTPD-2.2.2/conf/httpd.conf: Cannot
> load
>
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so
> into server:
>
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so:
> cannot open
> >>shared object file: No such file or directory
> >>
> >>The mod_was_ap20_http.so exists and it is in the
> >>/opt/CHROOT/HTTPD/WebSpherePlugin/bin directory.
> >>
> >>Have you any idea????
> >
> >Can the webserver user read the plugin && the
> config?
> >Is it right that you use a Linux-Distribution or do
> you use another OS?
>
> How about this questions?!
>
> Regards
>
> Alex
>
>
---------------------------------------------------------------------
> 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
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.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] Apache 2.2.2 and WebSphere PlugIn
Posted by Ma...@ssb.it.
The permission bits for allthe plugin directory are 755.
I'm on Z/linux. But it is the same as in another suse linux version.
My question is if with a compiled apache (and then I don't load modules
dinamically and I've no modules loaded with Load Module) I can use the
LoadModule directive.
If yes then probably then probably the WebSphere PlugIn was compiled with
some options that are not compatible with the ones I've used to compile
apache.
manuciao
Alexander Lazic <al...@none.at>
20/07/2006 10.10
Please respond to
users@httpd.apache.org
To
users@httpd.apache.org
cc
Subject
Re: [users@httpd] Apache 2.2.2 and WebSphere PlugIn
On Don 20.07.2006 10:01, Manuela.Vorazzo@ssb.it wrote:
>I'm using a Linux Suse 9.
>I would like to use the plugin because it was written for balancing
>throught WebSphere Application Server and I think that if I have a
>WebSphere Application server on backend it would be better using its
>plugin to reverse requests.
Ok thanks for explanation.
>Alexander Lazic wrote:
>>On Don 20.07.2006 09:39, Manuela.Vorazzo@ssb.it wrote:
>
>>But now when I run the command 'apachectl -t' I get the following:
>>
>>httpd: Syntax error on line 225 of
>>/opt/CHROOT/HTTPD-2.2.2/conf/httpd.conf: Cannot load
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so into server:
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so: cannot open
>>shared object file: No such file or directory
>>
>>The mod_was_ap20_http.so exists and it is in the
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin directory.
>>
>>Have you any idea????
>
>Can the webserver user read the plugin && the config?
>Is it right that you use a Linux-Distribution or do you use another OS?
How about this questions?!
Regards
Alex
---------------------------------------------------------------------
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] Apache 2.2.2 and WebSphere PlugIn
Posted by Alexander Lazic <al...@none.at>.
On Don 20.07.2006 10:01, Manuela.Vorazzo@ssb.it wrote:
>I'm using a Linux Suse 9.
>I would like to use the plugin because it was written for balancing
>throught WebSphere Application Server and I think that if I have a
>WebSphere Application server on backend it would be better using its
>plugin to reverse requests.
Ok thanks for explanation.
>Alexander Lazic wrote:
>>On Don 20.07.2006 09:39, Manuela.Vorazzo@ssb.it wrote:
>
>>But now when I run the command 'apachectl -t' I get the following:
>>
>>httpd: Syntax error on line 225 of
>>/opt/CHROOT/HTTPD-2.2.2/conf/httpd.conf: Cannot load
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so into server:
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so: cannot open
>>shared object file: No such file or directory
>>
>>The mod_was_ap20_http.so exists and it is in the
>>/opt/CHROOT/HTTPD/WebSpherePlugin/bin directory.
>>
>>Have you any idea????
>
>Can the webserver user read the plugin && the config?
>Is it right that you use a Linux-Distribution or do you use another OS?
How about this questions?!
Regards
Alex
---------------------------------------------------------------------
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] Apache 2.2.2 and WebSphere PlugIn
Posted by Ma...@ssb.it.
I'm using a Linux Suse 9.
I would like to use the plugin because it was written for balancing
throught WebSphere Application Server and I think that if I have a
WebSphere Application server on backend it would be better using its
plugin to reverse requests.
For Tomcat I'm using proxy pass reverse.
manuciaoThanks
Alexander Lazic <al...@none.at>
20/07/2006 09.52
Please respond to
users@httpd.apache.org
To
users@httpd.apache.org
cc
Subject
Re: [users@httpd] Apache 2.2.2 and WebSphere PlugIn
Hi,
On Don 20.07.2006 09:39, Manuela.Vorazzo@ssb.it wrote:
>
>I've compiled Apache 2.2.2 and now I would like to use apache with
>websphere plugin to pass requests to a remore WebSphere Application
>Server.
Do you really must use the plugin or can you use the proxy-balance
module?
What i mean is if the plugin is only a http-proxy-plugin why not use the
build in modules of apache ;-)
>But now when I run the command 'apachectl -t' I get the following:
>
>httpd: Syntax error on line 225 of
>/opt/CHROOT/HTTPD-2.2.2/conf/httpd.conf: Cannot load
>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so into server:
>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so: cannot open
>shared object file: No such file or directory
>
>The mod_was_ap20_http.so exists and it is in the
>/opt/CHROOT/HTTPD/WebSpherePlugin/bin directory.
>
>Have you any idea????
Can the webserver user read the plugin && the config?
Is it right that you use a Linux-Distribution or do you use another OS?
Hth && Regards
Alex
---------------------------------------------------------------------
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] Apache 2.2.2 and WebSphere PlugIn
Posted by Alexander Lazic <al...@none.at>.
Hi,
On Don 20.07.2006 09:39, Manuela.Vorazzo@ssb.it wrote:
>
>I've compiled Apache 2.2.2 and now I would like to use apache with
>websphere plugin to pass requests to a remore WebSphere Application
>Server.
Do you really must use the plugin or can you use the proxy-balance
module?
What i mean is if the plugin is only a http-proxy-plugin why not use the
build in modules of apache ;-)
>But now when I run the command 'apachectl -t' I get the following:
>
>httpd: Syntax error on line 225 of
>/opt/CHROOT/HTTPD-2.2.2/conf/httpd.conf: Cannot load
>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so into server:
>/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so: cannot open
>shared object file: No such file or directory
>
>The mod_was_ap20_http.so exists and it is in the
>/opt/CHROOT/HTTPD/WebSpherePlugin/bin directory.
>
>Have you any idea????
Can the webserver user read the plugin && the config?
Is it right that you use a Linux-Distribution or do you use another OS?
Hth && Regards
Alex
---------------------------------------------------------------------
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] Apache 2.2.2 and WebSphere PlugIn
Posted by Sander Temme <sc...@apache.org>.
Manuela,
On Jul 20, 2006, at 12:39 AM, Manuela.Vorazzo@ssb.it wrote:
> LoadModule was_ap20_module /opt/CHROOT/HTTPD/WebSpherePlugin/bin/
> mod_was_ap20_http.so
> WebSpherePluginConfig /opt/CHROOT/HTTPD/WebSpherePlugin/config/
> atmweb-ts-proxy/plugin-cfg.xml
>
>
> But now when I run the command 'apachectl -t' I get the following:
>
> httpd: Syntax error on line 225 of /opt/CHROOT/HTTPD-2.2.2/conf/
> httpd.conf: Cannot load /opt/CHROOT/HTTPD/WebSpherePlugin/bin/
> mod_was_ap20_http.so into server: /opt/CHROOT/HTTPD/WebSpherePlugin/
> bin/mod_was_ap20_http.so: cannot open shared object file: No such
> file or directory
>
> The mod_was_ap20_http.so exists and it is in the /opt/CHROOT/HTTPD/
> WebSpherePlugin/bin directory.
A couple of considerations:
1) As others point out, a compiled Apache 2.0 module will not load
into Apache 2.2.x. If IBM does not offer you a 2.2 version of the
module, you'll need to downgrade to 2.0.x in order to use what you
have. Alternatively, prod your IBM representative and tell them to
provide an Apache 2.2 version of the module. Apache 2.2 has been out
for eight months now.
2) Your path contains a 'CHROOT' portion which suggests that you run
chroot(1) in order to separate Apache from the rest of the file
system. You may have to change the absolute path to the module in
your configuration file to allow for the new / directory after chroot
(1).
Given that your error is a plain and simple 'No such file or
directory', I'd first look at number 2) above. However, once you
succeed in having Apache find the module, you will also run into 1).
Regards,
Sander
--
sctemme@apache.org http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
[users@httpd] Apache 2.2.2 and WebSphere PlugIn
Posted by Ma...@ssb.it.
I've compiled Apache 2.2.2 and now I would like to use apache with
websphere plugin to pass requests to a remore WebSphere Application
Server.
I installed and configured the plugin as written in the IBM guide and
everything is Ok.
I can find these two new lines in the httpd.conf:
LoadModule was_ap20_module
/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so
WebSpherePluginConfig
/opt/CHROOT/HTTPD/WebSpherePlugin/config/atmweb-ts-proxy/plugin-cfg.xml
But now when I run the command 'apachectl -t' I get the following:
httpd: Syntax error on line 225 of
/opt/CHROOT/HTTPD-2.2.2/conf/httpd.conf: Cannot load
/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so into server:
/opt/CHROOT/HTTPD/WebSpherePlugin/bin/mod_was_ap20_http.so: cannot open
shared object file: No such file or directory
The mod_was_ap20_http.so exists and it is in the
/opt/CHROOT/HTTPD/WebSpherePlugin/bin directory.
Have you any idea????
Please let me know, I would not like to install Ibm Http Server!
Thanks in advance
MANUCIAO