prageethpmplus Posted January 25, 2022 Share Posted January 25, 2022 Hi,i have several instances of dockerized jasperserver instances. They are running on the same server on different port.On the same server i also has a nginx server running too. i have following settings on Dockerfile to host http://xx.xx.xx.xx/ instead of http://xx.xx.xx.xx/jasperserver.DockerfileRUN rm -rf /usr/local/tomcat/webapps/ROOTRUN mv /usr/local/tomcat/webapps/jasperserver /usr/local/tomcat/webapps/ROOTRUN rm -r /usr/local/tomcat/workweb.xml<context-param> <param-name>webAppRootKey</param-name> <param-value>ROOT.root</param-value></context-param>My environments are as follows. InstanceEnvironmenthttp://xx.xx.xx.xx:13425devhttp://xx.xx.xx.xx:13427qahttp://xx.xx.xx.xx:13429opsSo when i point to http://xx.xx.xx.xx:13429/ . i can login to jasperserver with credentiuals.My next step is to access jasperver via nginx.This is my location block for ops env.location /reporting-ops/ { proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; rewrite ^/reporting-ops/(.*) /$1 break; proxy_redirect off; proxy_pass http://xx.xx.xx.xx:13429/$1;}when i type http://xx.xx.xx.xx/reporting-ops/ on the browser i get redirected. (Please see image)i have done same kind of url rewriting for other appl;ications and they work fine. So i assume this must be something to do with jasperserver. Thank you Very much. Link to comment Share on other sites More sharing options...
rmeadows Posted February 17, 2022 Share Posted February 17, 2022 your base context (/jasperserver-pro ..or for you / since it is at root) will redirect to the login page internally. Here is a standard nginx proxy config for jasper at the out of box context and path. Feel free to adjust accordingly. https://community.jaspersoft.com/wiki/nginx-proxy-tibco-jasperreports-server Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now