Synchronize - Apache web server session with Tomcat session - apache

I need to sync Apache web server session with Tomcat server session, to share authentication mechanism between 2 applications run on those two servers.
What is the way to do this? php code?
(I just need to authenticate the user who is going to use application runs on Apache through browser where who already logged in to the application which is running on Tomcat)
logging on to tomcat application cause
automatically logged in to apache application
log out from tomcat application cause
automatically log out from apache application

Related

https requests from a Jenkins Job blocked

I'm experiencing an issue with https requests sent from a Jenkins job, which are blocked and do not reach the final server.
The scenario is as follows:
I have a server where I'm running some backend, exposing APIs both over http and https (it's a django + django rest framework backend)
I implemented a Rhinoceros Plugin in C#, which needs to perform some rest API requests to the above mentioned server
On another server, I'm running a Jenkins job that is responsible for compiling the plugin, installing it on Rhinoceros and run some operations on Rhinoceros for test purposes
All calls over http do work like a charm from the plugin running on the Jenkins job, but all https do not work.
NOTES:
When manually running the plugin outside Jenkins, the https remote request succeed without any issue
Moreover, https requests sent from any other location do work
When the plugin runs from the Jenkins job no trace of any incoming connection is logged into the backend server, so that makes me believe the request never leaves the Jenkins server
WHAT I TRIED:
I installed the domain certificate locally on the Jenkins server, using keytool, on the JAVA_HOME/lib/security/cacerts keystore
I tried to install some Jenkins Plugins to skip certificate check or to trust certain domains
I checked the firewall on the Jenkins machine (adding allow rules for both Java and Rhinoceros applications)
So far, nothing worked.
Any idea?
Thanks

Do we need to reboot Apache web server if we update the source code of website it is hosting?

Well I am not an expert on Apache or any web server, I have recently finished my first web app, so I have rsyncd code to web server /HTML.
The web app is python flask based uses wsgi module to load.
I do not have control over Apache as it's taken care by systems department.
So I cannot test myself in office. I just want to know if we upload updated/modified code to the host machine running apache web server, will it pick up changes or we need to restart the Apache web server?

Apache Tomac Web Server and LOG4J Framework

I am new to Web Service and LAMP Stack.Currently I am working on a Web Application.It is a PHP Based Application that uses Apache Tomcat Web Server 8.0.26 ,MySQL Database ad Linux operating system(LAMP Stack).It has Web Services in Spring.
Following are the issues I am facing with the Application:-
1) Responses are slow over a period of few weeks from a web service hosted on tomcat.
Temporary Solution:-The problem is solved when we restart the Web Server.
2) What are the tools we can use to monitor tomcat / performance ?
Regards
Kaustubh
Take the dump of heap usage before and after of slow down and analyze. And also check your connection pooling with the database, check whether logs are getting rotated properly or not, check the number of active sessions in tomcat admin console.

Dedicated User for Weblogic - apache won't run

I have a java application running on Weblogic on a Linux box. The application/weblogic are run as root. I see this as a security risk. I want to create a dedicated user to run the application.
To do this I have:
Created a new dedicated DNRS/Weblogic user called 'wluser'.
Granted access to my application to only the dedicated user wluser.
The application is hosted on Apache. To run the application, I first start apache, then weblogic.
When I tried to run apache, it complained 'Permission denied: make_sock: could not bind to port 446'.
It seems apache needs to be started as root. But if I changed the owner of apache to root, I'll be able to run the application as root. Exactly what I don't want..
Anyone any ideas?
I'm fairly sure that an application has to be given permission to use a port below 1024.
Check out this question on ServerFault: Regular User socket permissions

How can I access Glassfish v2 Admin Console from Apache httpd?

We have a Glassfish running behind an Apache Webserver. Direct requests to the application server are blocked by the firewall. So we have the webserver forwarding requests to the app server via mod_jk. This all works fine for the web apps deployed on x80 ports of Glassfish. But am now left wondering, how do I access the Admin Console GUI? I can do most of the Admin Console things using asadmin, but it'd be good to have the GUI as well.
Thanks!
Nirav
Why not create a new VirtualHost or an Alias which will map to the Glassfish admin console?