1
vote
2answers
187 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 ...
0
votes
2answers
227 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 ...
2
votes
1answer
126 views

Why does mod_rewrite not reprocess rewritten paths?

I'm doing a path rewrite to set and environment variable that will cause mod_jk to use a specific JBoss server. Works perfectly with any of the application paths. When I try our monitoring servelet ...
0
votes
2answers
1k views

How to Exclude an URL for Apache Mod_proxy?

We have two Apache server as front-end and 4 tomcat server as back-end configured using mod_proxy module as load balancer. Now, we want to exclude an single tomcat url from the mod_proxy load ...
1
vote
1answer
1k views

SSL setup with apache in front of tomcat

i m trying to setup Apache with SSl and proxy SSL requests to my tomcat instance. I think i made the SSL work but theres still a error that shows up: Bad Gateway The proxy server received an ...
1
vote
2answers
88 views

Apache/Tomcat Redirect

We have a Tomcat application from a vendor running with Apache in front of it, but we don't have access to the application code. We have our own single sign on wrapped around the application, so if a ...
1
vote
0answers
890 views

“ajp_read_header: ajp_ilink_receive failed”

We have Apache 2.2.24 in front of Tomcat 7.0.33. We're using AJP connectors with APR/native configured. I recently noticed a number of 500 errors in the Apache access logs for a small proportion ...
0
votes
2answers
408 views

Mixed Static and dynamic content site using AWS S3 and EC2

We are installing a Java web application in a EC2 running Tomcat. The application uses a folder for users pictures (static content)-> www.example.com/PICTURES We use mod_jk to exclude Tomcat from ...
2
votes
1answer
600 views

Obscuring tomcat context path in URL

I've setup an Apache reverse proxy to Tomcat that is working, in that I can load my url and get connection to the Tomcat backend. What I'm attempting to do now is rewrite the URL that a user sees in ...
0
votes
3answers
870 views

Using mod_rewrite to hide tomcat port

I have apps on Tomcat that use URLs like this: http://xxx:8080/myapp I don't want the users to see the port in the URL. Hi can do a rewrite rule like this: RewriteRule ^/myapp(.*) ...
0
votes
2answers
215 views

Apache RewriteRule

how do i combile these two rules btw, RewriteRule (.*)/(.*) $1/consumerDSLWGP/$2 RewriteRule (.*)/dsl/(.*) $1/consumerDSLWGP/$2 i.e., a empty context path or a /dsl context path has to be ...
0
votes
4answers
1k views

Apache Tomcat URL without app name

I have deployed a tomcat application and made the necessary configurations to web a server (for eliminating port etc.). I can access the application following way http://www.domain.com/appname/ ...
1
vote
1answer
384 views

Apache mod_jk replacing mod_rewrite rules

We have a slightly complex Apache 2.2 setup in front of a Tomcat 6.0 instance. The main Tomcat webapp is deployed in: /opt/tomcat/webapps/ROOT But we also have static content that we update ...
2
votes
1answer
400 views

How do I deploy two zend frame work based apps in apache2 like the one in tomcat

I have two Zend framework applications called finance and fleet. Both of them have the same .htaccess file as indicated below RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -s [OR] ...
0
votes
1answer
426 views

Need help: mod_rewrite works for html, not for jsp

I'm quite new to apache so any help is appreciated! I've got Apache and tomcat (through mod_jk) running on my desktop. I defined all static files (i.e HTML) to be served by apache and all jsp to be ...
1
vote
1answer
3k views

Apache module “mod_jk”. Setup rewrite condition for using https for specific url/context

I do have a "simple" question that probably can be answered by you in seconds ;) I setup an apache webserver (v2.2), this apache server serves as balancer with "mod_jk" enabled. 2 different ...
0
votes
2answers
2k views

Apache2 - mod_expire and mod_rewrite not working in httpd.conf - serving content from tomcat

I am using apache2 server running on debian which forwards all the http request to tomcat installed on same machine. I have two files under my /etc/apache2/ folder apache2.conf and httpd.conf I ...
0
votes
5answers
5k views

Configuring Apache, Tomcat, mod_jk and mod_rewrite to serve up tomcat from top-level

I'm trying to set up my java app as the main component of a new site. I have some static resources I'd like served by Apache, so I setup Apache and Mod_jk, with the following rules, JkMount ...
0
votes
1answer
342 views

apache hangs when tomcat fails

I have apache in front of Tomcat, using mod_rewrite and mod_proxy to relay requests while serving static content directly. The Tomcat server can get bogged down and stop responding, or just plain ...