1
vote
1answer
47 views

Session lost in tomcat uing nginx as proxy

I have several applications in a tomcar server. I am using nginx for proxy so i can achieve acceding the application from a subdomain tomat:8080/app1 > app1.mydomain.com tomat:8080/app2 > ...
0
votes
1answer
23 views

Nginx: index mapping

I'm trying to install Nging as a frontend server for HTTP requests but the welcome page does not work: server { listen 8081; server_name localhost; root ...
0
votes
1answer
35 views

Nginx load balancer and Tomcat startup delay

I am using nginx (free version on centos) as a reverse proxying load balancer to a cluster of Tomcat 7 servers. It works great except for the time when tomcat is starting. If a Tomcat instance is ...
-1
votes
1answer
64 views

Hot redirect http/https request coming to port 80 to a internal tomcat server on 8080 [closed]

I have a production server with a domain name. It has a tomcat server on 8080. It has several web applications. So I want to map the http/https requests coming to that server to these web ...
0
votes
0answers
15 views

nginx $upstream_cookie_… variables

nginx 1.7.1 introduced Feature: the "$upstream_cookie_..." variables. see http://nginx.org/en/CHANGES What does it do and how do you use it? Can that be used for Session Affinity when proxying to ...
1
vote
1answer
555 views

Nginx as a proxy for tomcat with subdirectory

I want to set up a Nginx Proxy for the Tomcat server with my domain name such as example.com/demo/sample example.com/demo/manager example.com/demo/other_apps ... Here is my Nginx server block ...
0
votes
0answers
17 views

Server configuration regarding multiple tomcat instances [duplicate]

I am going to setup an website. I am expecting huge amount of traffic in future. I went through many articles for load balancing in tomcat. I wanted to ask how multiple tomcat clusters are good in ...
0
votes
0answers
71 views

For Tomcat 7 with NGINX, is APR still useful?

I've been having trouble keeping some Tomcat 7 servers running - they spontaneously shut themselves down. So I am looking at my config wondering how much I need certain things. I am using Tomcat 7 ...
0
votes
1answer
86 views

Nginx sever not handling 404 from upstreams

In my setup , I have a nginx server as a reverse proxy for my tomcat application servers. I use proxy_pass to connect to tomcat upstreams .. location /test { proxy_pass ...
0
votes
2answers
74 views

how to recover from a failed web server or reverse proxy

I have the following setup in my datacenter. Global LB --> HA proxy (2 instances on different servers via VRRP, performs HTTPS termination, acts as reverse proxy) ---> Nginx(2 instances on different ...
0
votes
0answers
325 views

Nginx cookie path for JSESSIONID not set

I have a problem with the JSESSIONID of a web application that is running on a Tomcat. The webapplication is running at https://alm-staging.domain.de/webclient.webapp/. Nginx should proxy all request ...
0
votes
0answers
142 views

Nginx proxy_pass to Tomcat non-root webapp?

I would like to use nginx as a proxy to a Tomcat non-root app but am having problems to do that. This is the code that I use: location / { proxy_pass http://127.0.0.1:8080/app_v1.1.0/; ...
2
votes
2answers
68 views

http in the Location-header when the original request was made over https

I am currently implementing https on our production environment, but I am scratching my head over a little thing here. SSL is terminated in the load balancer and the flow in our stack is basically ...
0
votes
1answer
305 views

Is it still best practice to run Tomcat behind Apache HTTPD?

Is it still considered best practice to run Apache Tomcat behind an HTTP proxy like Apache HTTPD or Nginx on a Linux server? A decade ago I was told it was necessary as Tomcat 3 was slow at serving ...
0
votes
2answers
429 views

Make Tomcat use X-Real-IP

I'm configuring nginx as a reverse proxy in front of Tomcat 7. I added the following lines to nginx configuration: set_real_ip_from 127.0.0.1; ... location / { proxy_pass http://tomcat; ...
0
votes
2answers
2k views

Basic auth for a Tomcat app (JIRA) with Nginx as reverse proxy

I have several subdomains running the Atlassian Tomcat apps (jira.example.com, confluence.example.com, stash.example.com) and I would want to know if it is possible to password protect all of them ...
3
votes
2answers
633 views

Configuring nginx as tomcat / uWSGI proxy

i'm in the process of configuring an amazon EC2 machine for java and django development. The stack we've chosen is nginx as the top level listener on :80 port, and passing the requests to the ...
0
votes
0answers
35 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
442 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. ...
1
vote
1answer
536 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
587 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
774 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
159 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
1k 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
974 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 ...
1
vote
1answer
5k 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
500 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
289 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
794 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
305 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
464 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 ...
4
votes
2answers
4k 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
250 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
161 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
617 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
3k 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 ...
6
votes
3answers
4k 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
2answers
613 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
818 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
687 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
508 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
601 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
229 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
2answers
5k 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?
1
vote
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 ...
24
votes
5answers
28k 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.
15
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 ...