1
vote
2answers
80 views

Apache httpd mod_rewrite with Tomcat resulting in lost JSESSIONID

So I'm working on a Java web application, for which I recently implemented an authentication module that relies on the JSESSIONID cookie to identify users. I was testing on a local tomcat from eclipse ...
1
vote
0answers
55 views

How do I proxy user context from httpd mod_proxy to tomcat?

I have configured a tomcat instance with SPNEGO to perform user authentication. When I access the tomcat port directly, it causes my browser to request my user name and password, which I provide and ...
1
vote
1answer
52 views

High Volume Settings for Apache / Tomcat/ Mod.JK

I have a 3.5 GB 2 CPU server running on tomcat/apache with mod.jk. We are seeing our server itself having plenty of memory available and tomcat is not showing anything crazy in terms of GC. We have ...
1
vote
2answers
1k views

Apache - How to limit Content-Type header length to avoid CVE-2014-0050?

On Thursday a DoS problem with Tomcat was announced in a Tomcat mailing list ("[SECURITY] CVE-2014-0050 Apache Commons FileUpload and Apache Tomcat DoS"). An attacker seems to be able to cause an ...
1
vote
2answers
86 views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> ...
1
vote
1answer
523 views

Apache2 + Tomcat : Receiving request through apache2 results in timeout and proxy error

So we use apache as a reverse proxy to send request to our solr (search application) which is hosted in tomcat. We have another server hosted in jboss which sends data in binary format to the apache, ...
1
vote
1answer
221 views

How to get real IP (not 127.0.0.1) to show up as remote IP when forwarding requests in httpd

I've got a httpd server sitting in front of tomcat. Both services are running on the same machine. The machine has 2 IP address and I have domain names that are bound to the different IPs. In the ...
0
votes
2answers
214 views

How do I configure my httpd rewrite/proxy to direct app1.example.com:443 to localhost:8080 and app2.example.com:443 to localhost:8081?

I have two Tomcat instances, one running on port 8080 and the other running on 8081. The both have deployed a web app called app.war but they are separated not only by different ports, but different ...
0
votes
1answer
39 views

Is there a way to configure shibboleth on tomcat without having to use httpd apache?

I have working setup of shibboleth configured via httpd apache and then pass it on to tomcat. Now is it possible to get rid of httpd portion alone and have tomcat handle shibboleth authentication by ...
0
votes
1answer
301 views

How to redirect HTTP post request

Hi I am currently using the below code in my apache httpd.conf file to redirect from HTTP to HTTPS <VirtualHost 10.1.2.91:80> Redirect 302 /GladQE/link https://glad-test.com/GladQE/link.do ...
0
votes
1answer
527 views

Load balancing using Httpd mod_cluster and tomcat not working

I am trying to setup a load balancer using Httpd, mod_cluster and Tomcat. My Httpd is running on the same server with IP 192.168.9.73 where the tomcat is running. Here is my Httpd configuration- ...
1
vote
0answers
135 views

mod_cluster and Tomcat load balancing design

I am fairly new to Load balancing. I am able to setup a load balancer using Apache httpd, mod_jk and tomcat. Now the problem is we would like to have design in the following manner, ...
0
votes
0answers
58 views

can't access both tomcats from apache

I have the following setup: apache for front-end and 2 tomcats as application servers, the traffic is delegated via ProxyPass and ProxyPassReverse to the correct app server: <VirtualHost *:80> ...
1
vote
1answer
445 views

Apache2/glassfish|tomcat: Redirecting some (but not all) requests on 80 to glassfish on port 8080, where is the admin screen?

Using that answer: How to redirect traffic on port 80 to Tomcat port 8080 whilst still allowing the server to send/receive on port 80 I've configured my apache2 server to redirect some requests to ...
1
vote
2answers
261 views

trying to use mod_proxy with httpd and tomcat

I been trying to use mod_proxy with httpd and tomcat... I have on VirtualBox running Scientific Linux which has httpd and tomcat 6 on it.. I made two nodes of tomcat6. I followed this guide like 10 ...
1
vote
1answer
130 views

How to tell httpd to preserve the proxied error message?

I have an httpd server proxying the requests to 2 different tomcat servers. One of my server handles the authentication and returns a specific http error code 521 when the user already have a running ...
0
votes
2answers
7k views

The proxy server received an invalid response from an upstream server

I have tomcat server behind the apache. I am using mod_ssl and reverse proxy to the tomcat. All are running at default ports. The full error is as follow. ack Proxy Error The proxy server received ...
0
votes
3answers
430 views

Httpd process consuming loads of memory

I have a server which is giving me headaches. It hosts a couple of sites: these are either php based, or java based. I have a setup that uses apache2 + suPhp for the php sites, and apache2 + mod_proxy ...
1
vote
0answers
153 views

How does Tomcat know, if an application is OK or NOK?

Apache webserver is talking to tomcat and putting him into error state, if he isn't reachable ("heartbeat") but also putting him into error state if the application has internal problems. Problems ...
1
vote
1answer
163 views

When is necessary integrate Apache httpd with apache tomcat (mod_jk)?

Apache sites, recommend the integration of httpd and tomcat(mod_jk). The first for static and the second for dynamic content. What about the case that the entire page is dynamic. Does it still make ...
1
vote
1answer
950 views

RedirectMatch redirect every url to https except few urls

At present I am redirecting all http urls to https urls using the following directive, RedirectMatch permanent ^(.*)$ https://someserver.com$1 Now I am stuck with an scenario where I have to ...
1
vote
2answers
713 views

Tomcat behind Apache httpd - ignoring RewriteRule?

I have a fairly common setup of a tomcat app server behind apache httpd using mod_proxy. My virtualhost looks like this: <VirtualHost test.example.be:80> ServerName test.example.be ...
0
votes
1answer
52 views

Forwarding requests from Tomcat to Apache httpd

Is there any way to forward requests from Tomcat to an Apache httpd server? I know you can do it the other way around with mod_proxy_ajp, but here's what I'd like to accomplish: We have a Java site ...
2
votes
3answers
225 views

When to run apache httpd + tomcat?

What are the primary benefits of running apache httpd in front of tomcat? Are the benefits worth the extra setup and complexity?
1
vote
1answer
670 views

faster ( squid + apache httpd + apache tomcat )

We have a production setup where we have Squid in the front(caching images, js, css, etc) Apache httpd in the middle(prefork + mod_rewrite + mod_jk/AJP + mod_deflate + mod_php(few php pages)) ...
0
votes
1answer
423 views

caching server in front of apache tomcat

We have a website and it's current architecture is as follows: There's squid in the front which caches images. Then there is apache httpd with mod_rewrite enabled. httpd then talks to apache ...
0
votes
1answer
64 views

tomcat 5.5 + apache Configure a group app inside tomcat

My apache redirects to my tomcat <VirtualHost www.example.com:80> ... ProxyPass http://localhost:8080/ ProxyPassReverse http://localhost:8080/ ... </VirtualHost> But my ...
0
votes
1answer
493 views

Tomcat & lighttpd/apache on same CentOS server

I'm wondering whether it would be possible to setup Tomcat 6 (for hosting Confluence) and either lighttpd or Apache (for PHP things) on the same machine. Ideally I want to have the root be PHP and ...
2
votes
1answer
823 views

Apache Name-based Virtual Hosts - configuring httpd.conf file

I am running a web app on Tomcat at the following location on my server. /var/tomcat/webapps/SoccerApp I am looking to update the Tomcat httpd.conf file with the following virtual host... ...
3
votes
2answers
1k views

gzip on httpd or on Tomcat?

In a Java web application running in an Apache Tomcat servlet container with an Apache httpd in front of it: is it better to use enable GZIP compression on Tomcat or on httpd level? is it better to ...
3
votes
2answers
1k views

Why a SIGHUP signal to httpd kills the tomcat process?

I have a server with a tomcat process binding to port 80 and a httpd processes binding to port 5000. For some reason every time any process send a SIGHUP signal to httpd process my tomcat process ...
1
vote
3answers
348 views

Why stoping httpd with -k stop kills tomcat instances?

For some reason every time I stop a second instance of httpd using /usr/sbin/httpd -f /otherplace/httpd.conf -k stop One or two of my tomcat instances are killed (taken out of memory), without ...