Queries related to Tomcat Web Servers for which a new web-application needs to deployed on Production Environment

2019-01-27 Thread Vinu Vibhu Sobhana
Hai

First of all Iam new to Tomcat-Cluster and hence I apologize if my
doubts are wrong.

I have been assigned a new project that requires a web application to
be hosted using Tomcat-Cluster, as it is expected to receive high
traffic. So, I have configured a Tomcat-Cluster with 4 Tomcat
instances (ie 2 - Tomcat instances running on 2 VMs each), where they
shall receive hits its through a load-balancer. As I new to
Tomcat-Cluster, I have to clear some points before approving the
project to go on-line.

My queries are :

1. The Clustering of Tomcat currently configured is using the Delta
Manger for managing session replications. Is it the correct choice or
should I go for Backup Manger or any third party session management
software such as memcache or redis.

2. While using Tomcat-Cluster, can we use/configure the Tomcat Manager
App to deploy applications on FarmWarDeployer folder or is there any
other method to do so.

3. Virtual Host entry has been implemented for our project domain
"webportal.xyz.in" where only the access logs are getting logged to
"webportal.xyz.in_access_log". Is there any means by which I can
receive the error-logs also for this domain on a separate file.

4. Is there any method to tune/tweak my current server.xml file so
that clustering method can be done globally rather than applying
individually on every Host entry with different ports.

5. How to enable SSL for Tomcat-Cluster. Should I need to install SSL
Certificates on all 4 tomcat instances or only on the Load-balancer.

6. What all parameters needs to be checked/considered for tuning the
Tomcat / Tomcat-Cluster instance while hosting any Project on
Production environment.

7. Is there any service reload option present for tomcat, ie. similar
to the one present in apache where the sessions doesn't get
invalidated while tuning/updating the server config files.

8. One of the issue noted was that one of the security feature
implemented for this projects stopped working while moving to
Tomcat-Cluster environment.

Our application uses java spring mvc
"4.3.5.RELEASE,
4.2.0.RELEASE"
where it is configured to allow only one time login for all users
until their current login session expires or have been invalidated.
ie. if multiple logins are done, only the last login will be active
all the rest gets automatically logged-out. it was implemented for
some customer security reasons. This was working fine while running on
a single Tomcat instance. But while deploying on a Clustered instance
it is not working unless if the same user logs into the same tomcat
instance of the cluster. Is there any solution to this problem or
should the developers needs to reconfigure the application to meets
Tomcat-Clusters concepts.

Please find the server.xml and context.xml for one of my Tomcat
instances present in Cluster mentioned below.

server.xml
#


   
   
   
   
   
   
  
   
   
  
  
  
 

 
 


   
  
  
 
  
  
  
  
  
 
 
 
  
   
   
   
   
   



 

  
www.webportal.xyz.in


   
  
  
 
  
  
  
  
  
 
 
 
  
   
   
   
   
   



 
  
   

#

context.xml
#


WEB-INF/web.xml
${catalina.base}/conf/web.xml


#

-- 
Thank You

Best regards
Vinu Vibhu Sobhana

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 502 errors in Google Clod Platform Load Balancing with Tomcat Servers

2019-01-27 Thread Dhaval Jaiswal
When load balancer see Instance in healthy state it would start sending
request to the application. Does your deployed application on the Instance
is ready as well to serve the request? Do you check application is ready
alongwith Instance health.


On Fri, Jan 25, 2019 at 6:41 PM Abin Joseph  wrote:

> Hi Team,
>
>
>
> Our application is deployed in google cloud and the back end instances are
> tomcat servers. Now our load balancer is returning 502 errors with status
> details “backend-timeout” for some requests and it is impacting our
> production in a huge way. The instances are healthy when the error occurs
> and google cloud configurations seem to be fine. The server version is
> apache-tomcat-8.0.30 and the operating system is  Ubuntu 14.04.5 LTS.
>
>
>
> I am not sure whether we need to consider any tomcat specific settings or
> parameters for scaling in GCP and to fix this issue. Any help on this is
> highly appreciated.
>
>
>
> Thanks,
>
> Abin
>


[OT] Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread tomcat

On 27.01.2019 20:57, Hassan Schroeder wrote:

On Sun, Jan 27, 2019 at 10:53 AM Barry Kimelman
 wrote:


I am running Apache 2.4 on a 64 bit windows 10 system.


This mailing list is for Apache Tomcat, not Apache httpd -- you will
likely get better responses on an appropriate list.



It's OK, Hassan. We'll just send the invoice to the httpd people.
:-)


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Barry Kimelman
Hello,

Thanks for all your help. After much Google searching I have found
something which seems to be working (at least for the very basic hello.php
script). I will now try more complicated PHP scripts.

Thanks again.

On Sun, Jan 27, 2019 at 1:53 PM Ulises Gonzalez Horta 
wrote:

> On 2019-01-27 14:15, Barry Kimelman wrote:
> > Hello,
> >
> > Thanks for the reply. I have looked at the URL you specified and the
> > information shown there is not specific enough. It shows config info,
> > but
> > it does not say where to put it and it doe snot adequately explain it.
> >
> > On Sun, Jan 27, 2019 at 1:06 PM Ulises Gonzalez Horta
> > 
> > wrote:
> >
>
> Related to where to put it you can put the config in the httpd.conf file
> or in a separated file and in your httpd.conf file you use include $
> file  to include that file. I haven't work with apache in windows so I
> don't know if you have httpd.conf file or apache2.conf file with your
> main config.
> --
> Salu2, Ulinx
> "En un problema con n ecuaciones
> siempre habrá al menos n+1 incógnitas"
> Linux user 366775
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

==

Barry Kimelman
Atlanta, GA, USA


Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Hassan Schroeder
On Sun, Jan 27, 2019 at 10:53 AM Barry Kimelman
 wrote:

> I am running Apache 2.4 on a 64 bit windows 10 system.

This mailing list is for Apache Tomcat, not Apache httpd -- you will
likely get better responses on an appropriate list.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Ulises Gonzalez Horta

On 2019-01-27 14:15, Barry Kimelman wrote:

Hello,

Thanks for the reply. I have looked at the URL you specified and the
information shown there is not specific enough. It shows config info, 
but

it does not say where to put it and it doe snot adequately explain it.

On Sun, Jan 27, 2019 at 1:06 PM Ulises Gonzalez Horta 


wrote:



Related to where to put it you can put the config in the httpd.conf file 
or in a separated file and in your httpd.conf file you use include $ 
file  to include that file. I haven't work with apache in windows so I 
don't know if you have httpd.conf file or apache2.conf file with your 
main config.

--
Salu2, Ulinx
"En un problema con n ecuaciones
siempre habrá al menos n+1 incógnitas"
Linux user 366775

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Barry Kimelman
Hello,

Thanks for the reply. I have looked at the URL you specified and the
information shown there is not specific enough. It shows config info, but
it does not say where to put it and it doe snot adequately explain it.

On Sun, Jan 27, 2019 at 1:06 PM Ulises Gonzalez Horta 
wrote:

> On 2019-01-27 13:52, Barry Kimelman wrote:
> > Hello,
> >
> > I am running Apache 2.4 on a 64 bit windows 10 system.
> >
> > For a while I have been running Perl CGI scripts with no problems. Now
> > I
> > want to run PHP CGI scripts.
> >
> > The last few linbes of my conf/httpd.conf file looks like the following
> >
> > 
> > Include conf/extra/proxy-html.conf
> > 
> >
> > # Secure (SSL/TLS) connections
> > ##
> > # Note: The following must must be present to support
> > #   starting without SSL on platforms with no /dev/random
> > equivalent
> > #   but a statically compiled-in mod_ssl.
> > #
> > 
> > SSLRandomSeed startup builtin
> > SSLRandomSeed connect builtin
> > Include conf/extra/httpd-ssl.conf
> > 
> >
> > # PHP FastCGI
> > #
> > # Edit conf/extra/httpd-fcgid.conf to match your php configuration
> > # and uncomment the Include line below.
> > #
> > #Include conf/extra/httpd-fcgid.conf
> >
> > However the file named in the comment on the last line does not exist
> > and I
> > have not been able to find a "sample" of the named file. What do I need
> > to
> > do for the named file in order to be able to run CGI scripts written in
> > PHP
> > ?
> >
> > Thanks.
> >
> > ==
> >
> > Barry Kimelman
> > Atlanta, GA, USA
>
> Hi did you check https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
> ?? Is the php example there good for you??
>
> --
> Salu2, Ulinx
> "En un problema con n ecuaciones
> siempre habrá al menos n+1 incógnitas"
> Linux user 366775
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

-- 

==

Barry Kimelman
Atlanta, GA, USA


Re: Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Ulises Gonzalez Horta

On 2019-01-27 13:52, Barry Kimelman wrote:

Hello,

I am running Apache 2.4 on a 64 bit windows 10 system.

For a while I have been running Perl CGI scripts with no problems. Now 
I

want to run PHP CGI scripts.

The last few linbes of my conf/httpd.conf file looks like the following


Include conf/extra/proxy-html.conf


# Secure (SSL/TLS) connections
##
# Note: The following must must be present to support
#   starting without SSL on platforms with no /dev/random 
equivalent

#   but a statically compiled-in mod_ssl.
#

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Include conf/extra/httpd-ssl.conf


# PHP FastCGI
#
# Edit conf/extra/httpd-fcgid.conf to match your php configuration
# and uncomment the Include line below.
#
#Include conf/extra/httpd-fcgid.conf

However the file named in the comment on the last line does not exist 
and I
have not been able to find a "sample" of the named file. What do I need 
to
do for the named file in order to be able to run CGI scripts written in 
PHP

?

Thanks.

==

Barry Kimelman
Atlanta, GA, USA


Hi did you check https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html 
?? Is the php example there good for you??


--
Salu2, Ulinx
"En un problema con n ecuaciones
siempre habrá al menos n+1 incógnitas"
Linux user 366775

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Need help configuring Apache 2.4 on Windows 10 with PHP

2019-01-27 Thread Barry Kimelman
Hello,

I am running Apache 2.4 on a 64 bit windows 10 system.

For a while I have been running Perl CGI scripts with no problems. Now I
want to run PHP CGI scripts.

The last few linbes of my conf/httpd.conf file looks like the following


Include conf/extra/proxy-html.conf


# Secure (SSL/TLS) connections
##
# Note: The following must must be present to support
#   starting without SSL on platforms with no /dev/random equivalent
#   but a statically compiled-in mod_ssl.
#

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Include conf/extra/httpd-ssl.conf


# PHP FastCGI
#
# Edit conf/extra/httpd-fcgid.conf to match your php configuration
# and uncomment the Include line below.
#
#Include conf/extra/httpd-fcgid.conf

However the file named in the comment on the last line does not exist and I
have not been able to find a "sample" of the named file. What do I need to
do for the named file in order to be able to run CGI scripts written in PHP
?

Thanks.

==

Barry Kimelman
Atlanta, GA, USA