Hello,
i tried to use nginx as a reverse proxy for tomcat and jboss application
(that live on other servers) , using subdomains (eg. app1.domain.com, app2.domain.com etc), but, unfortunatelly, tomcat and jboss application
have
some problems with it (using subdomains there’s no way to make jsp
available) … so I decided to try the ajp_module.
Now, I’ve installed it and seems to work but I’m not able to configure
subdomains for the apps.
Any suggestion?
beside this, is there a reason you stick to AJP-connector? iirc this is
not
a default-module for nginx,
and on my testing i found the HTTP-connector as fast as AJP, but working
kind of smoother
for tomcat-appservers
to use subdomains, but the application didn’t work properly: once I did
login, the user session wasn’t loaded , so I couldn’t use it (after
login, I
saw alway the login page with some parts of other pages) , so someone
adviced me to use ajp connector.
I’ve installed again nginx without the use of apt-get and now my
configuration is:
but I don’t know how to configure it to have something like app1.domain.com
and check if it works.
With this config, when I go on app1.domain.com, I see the main page of
tomcat server
server{
did login, the user session wasn’t loaded , so I couldn’t use it
server tomcat.domain.com:8009;
ajp_pass tomcat/app1/;
}
}
}
but I don’t know how to configure it to have something like app1.domain.com and check if it works.
With this config, when I go on app1.domain.com, I see the main page of
tomcat server
I have to add (I don’t find the Edit button ) that I have to use
subdomains for jboss application too and I have a problem with those
apps …
in that case, with the use of subdomains I cannot see the login pages
ever.
I apologize for my english, I hope what I wrote would be understandable
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.