Welcome! Log In Create A New Profile


nginx proxy vs apache proxy

June 04, 2013 08:39PM
I'm sure this is probably just a misconfiguration or a misunderstanding of nginx proxying. I'm looking to replace apache as my ssl/proxy server for a Jboss/tcServer backend. Unfortunately, I have a java web start app that builds the jnlp files dynamically based on the scheme, protocol and server info passed back to it. I'm not getting the https (port 443) passed back as expected. I thought it was the application so I googled and found a some quick and dirty jsp pages that let me test the responses being passed back. For the apache server, I see the following:

Scheme: https
Name: my.example.com
Port: 443

Nginx responses show (regardless of how I try to connect):

Scheme: http
Name: my.example.com
Port: 80

I'm fairly new to nginx but I've read and googled fairly extensively to no avail.

I'm trying to do similar to the following:

location /myJWSapp/ {
proxy_redirect off;

proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-By $server_addr:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

I can see the url in the jnlp file Also, for some reason the jnlp file is now being truncated at 10k (I've googled this to no avail as well). This is making it even more difficult to debug this issue.
Subject Author Posted

nginx proxy vs apache proxy

solitaryr June 04, 2013 08:39PM

Re: nginx proxy vs apache proxy

solitaryr June 11, 2013 07:46PM

RE: nginx proxy vs apache proxy

Lukas Tribus June 18, 2013 10:24AM

Re: RE: nginx proxy vs apache proxy

solitaryr June 19, 2013 09:19AM

Re: RE: nginx proxy vs apache proxy

Jonathan Matthews June 19, 2013 09:30AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 214 on March 20, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready