0
votes
0answers
31 views

Apache Tomcat 7 + Nginx - IsTomcat Native needed?

this is my 1st question. If i make mistake, simply point it out & i'll improve it next time. I'm a Java Dev & new to Linux. I deploy my Spring MVC app on a VPS with Tomcat 7 and use nginx as ...
0
votes
0answers
19 views

Point Domain containing customer name to single application

We are building a SAAS based product where in customers procure the product by registering with a unique name appended before the domain name. Ex. "abccompany.bestproduct.com" Likewise there would be ...
0
votes
1answer
84 views

NGINX as load balancer with tomcat6 gives bad gateway error only only HTTPS mode

I am using nginx as load balancer on tomcat6 webserver. Both NGINX and TOMCAT6 have been configured to use only HTTPS. NGINX configuration settings are mentioned in the following two files. ...
0
votes
0answers
97 views

Nginx and Tomcat 6 proxy pass

i've got problems tp configure nginx as reverse proxy for an tomcat application. I want to set domain www.example.com/blog to pass to an tomcat application. nginx-site: server { listen 80; ...
1
vote
1answer
301 views

Loadbalancing with nginx and tomcat

Hello this should be fairly easy to answer for any system admin, the problem is that I'm not server admin but I have to complete this task, I'm very close but still not managing to do it. Here is what ...
0
votes
2answers
286 views

Forward nginx to Apache Tomcat Endless Loop

I'm totally new to nginx. I want to forward two subdomains to the two applications in my apache tomcat server. As I searched over internet, I found that rewrite does the forwarding but I cannot see ...
0
votes
2answers
497 views

Zero downtime deployment (Tomcat), Nginx or HAProxy, behind hardware LB - how to “starve” old server?

Currently we have the following setup. Hardware Load Balancer (LB) Box A running Tomcat on 8080 (TA) Box B running Tomcat on 8080 (TB) TA and TB are running behind LB. For now it's pretty ...
1
vote
0answers
114 views

Facing application redirection issue on nginx+tomcat

I am facing a strange issue on an application which is deployed on tomcat. Nginx is used in front of tomcat to access the application from browser. The issue is, I deployed the application on tomcat, ...
1
vote
1answer
416 views

Using nginx as a reverse proxy for tomcat results in new jsessionids for every ssl request

I am using nginx as a reverse proxy for a tomcat setup, and everything works fine for the MOST part, the only issue I am having is that every request to an http address results in a new JSESSION ID ...
0
votes
1answer
618 views

Upstream timed out (110: Connection timed out) with nginx + Tomcat + Amazon EC2

On an Amazon EC2 instance, we have nginx and Tomcat running. Nginx is proxying all requests to Tomcat on port 8080 running on the same instance. This worked fine for a day, but then started seeing a ...
0
votes
0answers
47 views

JMS MaxConnections and MaxActiveConnection Values

So situation is this. nginx takes the incoming request and then passes it on to Tomcat, which is running a servlet. The servlet responses back to nginx and at the same time does logging of various ...
0
votes
1answer
2k views

Sticky sessions based on a cookie using nginx

Currently, we are using apache2 as frontend, and tomcat as backend. We are using mod_proxy_balancer and AJP. Also we are using stickysession by JSESSIONID cookie: <Proxy balancer://backend> ...
3
votes
1answer
362 views

Tomcat and nginx sizing

I manage an application that is deployed on Tomcat servers, with nginx in front, as a reverse proxy. I need some help for the sizing of thread pools / connection pools / ... I find quite a lot of ...
1
vote
1answer
273 views

nginx static content configuration

I have a server: server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 access_log /var/log/nginx/localhost.access.log; location ~* ...
1
vote
1answer
493 views

Tomcat Manager 403 Behind Nginx

This has been driving me crazy for a few days now. Either I'm doing something completely wrong, really silly, or a combination thereof. I am on Ubuntu 11.10. I ran the following commands: sudo ...
0
votes
1answer
234 views

should I activate keepalive in resin/tomcat ? (with nginx/apache)

I'm using resin(tomcat) back in nginx(apache) parse JSP file only,like this: location ~ \.jsp { // 88 is resin(tomcat) port proxy_pass http://localhost:88; ...
1
vote
1answer
367 views

configuring nginx and tomcat together

I am trying to figure out exactly how to configure nginx and tomcat to work together correctly. Nginx has a worker connections setting and tomcat has max threads (assuming native apr connector for ...
2
votes
2answers
2k views

Nginx or Apache as web server in front of Tomcat (Java app)?

just wondering which web server between Apache and Nginx is better supported from Tomcat? I'm attracted in using Nginx for the single-threaded feature. I want to deploy a Java app running on HTTPS. ...
0
votes
0answers
181 views

Prevent direct web requests to Tomcat server but through Apache HTTP server

I am trying to run Tomcat server with Apache HTTP server as front end, which I am able to configure successfully using mod_proxy plugin. I am able to access the sample application provided in Tomcat ...
0
votes
1answer
155 views

nginx proxy based on username

I'm using nginx as a proxy server in front of Tomcat instances. There's basic authentication set up, giving access to the demo page just to a few users. Is it possible to modify the proxy_pass ...
3
votes
3answers
406 views

Serving Tomcat under a sub-URI

I have a lot of services attached to a single domain, so I was hoping to serve Tomcat under, say, http://server_name/tomcat, with Nginx as a reverse proxy to Tomcat's HTTP connector. The Nginx ...
1
vote
2answers
2k views

Nginx as a reverse proxy to a Tomcat instance via the HTTP connector

I'm dropping Apache as a reverse proxy to a Tomcat instance, mainly because it has no other purpose other than forwarding requests to the Tomcat instance. I'm no expert at deploying Java Web ...
4
votes
3answers
2k views

Mapping hudson to a subdomain through nginx proxying

I'm now trying to setup nginx as a reverse proxy for Hudson so it can be access on http://build.example.com directly. I've already installed Hudson on Tomcat and verified that I can access Hudson on ...
2
votes
1answer
410 views

Is there a Apache or Nginx equivalent to the IIS “drain stop”?

I come from a .NET background and there are many things I loved about it along side many things I hated. IIS was, in general, one of those things I hated. However, one really nice feature of IIS was ...
1
vote
2answers
558 views

Should I use nginx exclusively, or have it as a proxy to Tomcat (performance related)?

I've planned to create a website that'll be pretty heavy on dynamic content, and want to know what would be the wisest choice for part of my webstack. Right now I'm trying to decide whether I should ...
1
vote
1answer
573 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
405 views

Serve web application error messages from Http server

I have nginx as a http server with tomcat as a backend (using proxy_pass). It works great but I want to define my own error pages (404, 500, etc.) and that they are served by nginx and not tomcat. For ...
0
votes
3answers
406 views

nginx and 2 upstreams

I want to do the following: I have nginx that redirects to tomcat, so the config is something like this: upstream miserver.com { server localhost:8080; } server { ...
0
votes
1answer
211 views

Shared folder between two Web Servers

I'm running two webservers in a single host. One of them is a Tomcat running in a reverse proxy configuration. The front webserver is a nginx that proxies request to the Tomcat. So far, is working ...
2
votes
1answer
4k views

Configuring nginx for use with Tomcat and SSL

I have Googled and looked at various sample SSL configurations and it seems like I've got things set up right, but there are two problems: When I load https://mysite.com, the lock that should appear ...
-6
votes
1answer
3k views

How to combine tomcat and nginx?

I would like to configure my system so nginx is serving all of the the static files, while Tomcat is handling the dynamic .jsp pages. Is there a best practice for this?
0
votes
2answers
2k views

Nginx as a proxy to Jetty

Pardon me, this is my first attempt at Nginx-Jetty instead of Apache-JK-Tomcat. I deployed myapp.war file to $JETTY_HOME/webapps/, and the app is accessible at the url: http://myIP:8080/myapp I did ...
20
votes
5answers
20k views

Configure nginx for jboss/tomcat

In order to pass traffic to JBoss/TomCat on port 80 using Apache we used to install and configure mod_jk. Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss.
14
votes
5answers
2k views

Alternatives to Apache

Our current stack is Apache + Tomcat + MySQL, using ProxyPass AJP to fire requests from Apache to Tomcat. We also run PHP for Wordpress on the same sites, and so need working .htaccess files. In ...