Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Load-balancing with Mod_Proxy and SSL problem

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


jehan.badshah at nu

Jul 12, 2012, 5:42 AM

Post #1 of 3 (310 views)
Permalink
Load-balancing with Mod_Proxy and SSL problem

HI

*for loadbalancing I added following lines in httpd-ssl.conf file *

<VirtualHost _default_:443>
//certificates etc

//loadbalancing lines
ProxyPass / balancer://sakaiCluster/ stickysession=JSESSIONID nofailover=On
timeout=60
<Proxy balancer://sakaiCluster>
BalancerMember ajp://192.168.1.101:8009 route=tom121
BalancerMember ajp://192.168.1.102:8009 route=tom122
</Proxy>

</VirtualHost>

*when I am running apache then getting following syntax error*

AH00526: Syntax error on line 247 of httpd-ssl.conf:
ProxyPass Can't find 'byrequests' lb method


*Following are Loaded Modules:*
core_module (static)
so_module (static)
http_module (static)
mpm_event_module (static)
authn_file_module (shared)
authn_core_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_core_module (shared)
access_compat_module (shared)
auth_basic_module (shared)
socache_shmcb_module (shared)
reqtimeout_module (shared)
filter_module (shared)
mime_module (shared)
log_config_module (shared)
env_module (shared)
headers_module (shared)
setenvif_module (shared)
version_module (shared)
slotmem_shm_module (shared)
ssl_module (shared)
unixd_module (shared)
status_module (shared)
autoindex_module (shared)
dir_module (shared)
alias_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ajp_module (shared)
proxy_http_module (shared)

Any help ?


Regards
----------------------------------------------------
Jehan


rumble at cord

Jul 12, 2012, 5:48 AM

Post #2 of 3 (293 views)
Permalink
Re: Load-balancing with Mod_Proxy and SSL problem [In reply to]

On 07/12/2012 02:42 PM, Jehan Badshah wrote:
> HI
>
> *for loadbalancing I added following lines in httpd-ssl.conf file *
>
> <VirtualHost _default_:443>
> //certificates etc
>
> //loadbalancing lines
> ProxyPass / balancer://sakaiCluster/ stickysession=JSESSIONID
> nofailover=On timeout=60
> <Proxy balancer://sakaiCluster>
> BalancerMember ajp://192.168.1.101:8009
> <http://192.168.1.101:8009> route=tom121
> BalancerMember ajp://192.168.1.102:8009
> <http://192.168.1.102:8009> route=tom122
> </Proxy>
>
> </VirtualHost>
>
> *when I am running apache then getting following syntax error*
>
> AH00526: Syntax error on line 247 of httpd-ssl.conf:
> ProxyPass Can't find 'byrequests' lb method
>
>
> *Following are Loaded Modules:*
> core_module (static)
> so_module (static)
> http_module (static)
> mpm_event_module (static)
> authn_file_module (shared)
> authn_core_module (shared)
> authz_host_module (shared)
> authz_groupfile_module (shared)
> authz_user_module (shared)
> authz_core_module (shared)
> access_compat_module (shared)
> auth_basic_module (shared)
> socache_shmcb_module (shared)
> reqtimeout_module (shared)
> filter_module (shared)
> mime_module (shared)
> log_config_module (shared)
> env_module (shared)
> headers_module (shared)
> setenvif_module (shared)
> version_module (shared)
> slotmem_shm_module (shared)
> ssl_module (shared)
> unixd_module (shared)
> status_module (shared)
> autoindex_module (shared)
> dir_module (shared)
> alias_module (shared)
> proxy_module (shared)
> proxy_balancer_module (shared)
> proxy_ajp_module (shared)
> proxy_http_module (shared)
>
> Any help ?
>
>
> Regards
> ----------------------------------------------------
> Jehan
>
>
You need to load mod_lbmethod_byrequests :)

LoadModule lbmethod_byrequests_module /path/mod_lbmethod_byrequests.so

With regards,
Daniel.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jehan.badshah at nu

Jul 12, 2012, 6:13 AM

Post #3 of 3 (295 views)
Permalink
Re: Load-balancing with Mod_Proxy and SSL problem [In reply to]

Thanks Daniel

Now syntax errors are fixed, but apache is not starting, following is error
log

[Fri Jul 13 23:07:52.976414 2012] [lbmethod_heartbeat:notice] [pid
12579:tid 3086534336] AH02282: No slotmem from mod_heartmonitor
[Fri Jul 13 23:07:52.977220 2012] [proxy_balancer:emerg] [pid 12579:tid
3086534336] (22)Invalid argument: AH01186: worker slotmem_grab failed
[Fri Jul 13 23:07:52.977252 2012] [:emerg] [pid 12579:tid 3086534336]
AH00020: Configuration Failed, exiting
[root [at] localhos ~]#



On Thu, Jul 12, 2012 at 5:48 PM, Daniel Gruno <rumble [at] cord> wrote:

> On 07/12/2012 02:42 PM, Jehan Badshah wrote:
> > HI
> >
> > *for loadbalancing I added following lines in httpd-ssl.conf file *
> >
> > <VirtualHost _default_:443>
> > //certificates etc
> >
> > //loadbalancing lines
> > ProxyPass / balancer://sakaiCluster/ stickysession=JSESSIONID
> > nofailover=On timeout=60
> > <Proxy balancer://sakaiCluster>
> > BalancerMember ajp://192.168.1.101:8009
> > <http://192.168.1.101:8009> route=tom121
> > BalancerMember ajp://192.168.1.102:8009
> > <http://192.168.1.102:8009> route=tom122
> > </Proxy>
> >
> > </VirtualHost>
> >
> > *when I am running apache then getting following syntax error*
> >
> > AH00526: Syntax error on line 247 of httpd-ssl.conf:
> > ProxyPass Can't find 'byrequests' lb method
> >
> >
> > *Following are Loaded Modules:*
> > core_module (static)
> > so_module (static)
> > http_module (static)
> > mpm_event_module (static)
> > authn_file_module (shared)
> > authn_core_module (shared)
> > authz_host_module (shared)
> > authz_groupfile_module (shared)
> > authz_user_module (shared)
> > authz_core_module (shared)
> > access_compat_module (shared)
> > auth_basic_module (shared)
> > socache_shmcb_module (shared)
> > reqtimeout_module (shared)
> > filter_module (shared)
> > mime_module (shared)
> > log_config_module (shared)
> > env_module (shared)
> > headers_module (shared)
> > setenvif_module (shared)
> > version_module (shared)
> > slotmem_shm_module (shared)
> > ssl_module (shared)
> > unixd_module (shared)
> > status_module (shared)
> > autoindex_module (shared)
> > dir_module (shared)
> > alias_module (shared)
> > proxy_module (shared)
> > proxy_balancer_module (shared)
> > proxy_ajp_module (shared)
> > proxy_http_module (shared)
> >
> > Any help ?
> >
> >
> > Regards
> > ----------------------------------------------------
> > Jehan
> >
> >
> You need to load mod_lbmethod_byrequests :)
>
> LoadModule lbmethod_byrequests_module /path/mod_lbmethod_byrequests.so
>
> With regards,
> Daniel.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


--

Regards
----------------------------------------------------
Jehan Badshah | Sr. Software Engineer & Team Lead
Department of Research & Development
National University of Computer and Emerging Sciences
A.K. Brohi Road, H-11/4, Islamabad
UAN: +92 (0)51 - 111 128 128 ext 344

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.