Problems with upstream

mevans336 nginx-forum at nginx.us
Wed Apr 21 00:22:12 MSD 2010


Hello,

I am working on replacing our Kemp Loadbalancers with nginx and so far, things look good except for a minor issue. When a request comes into my server on the HTTP port, our JBoss server uses ACEGI to redirect to https://www.myserver.com/dev/home. The first time this redirection occurs, I'm sent to the URL of my proxy_pass directive.

I am running version 0.7.65 stable on CentOS 5.4. Here is my configuration file:

error_log       /var/log/nginx_error.log;
worker_processes  2;

events {
  worker_connections  4096;
}

http {
    ssl_session_cache    shared:SSL:10m;
    ssl_session_timeout  10m;

upstream jboss_dev_servers {
        server 192.168.2.86:8080;
        server 192.168.2.87:8080;
}

server {
    listen               80;
    listen               443 default ssl;
    access_log           /var/log/nginx_access.log;
    keepalive_timeout    70;
    server_name          www.myserver.com;
    ssl_certificate      dev.crt;
    ssl_certificate_key  dev.key;
    ssl_protocols        SSLv3 TLSv1;
    ssl_ciphers          HIGH:!ADH:!MD5;
    location / {
        proxy_pass       http://jboss_dev_servers;
    }
}
}

When a user types in www.myserver.com, they are redirected to https://jboss_dev_servers/dev/home. If I hit refresh, they are then directed to the proper url (https://www.myserver.com/dev/home/) and the web page displays.

Any ideas?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,77284,77284#msg-77284




More information about the nginx mailing list