Jump to content
We've recently updated our Privacy Statement, available here ×

Access Jasper with a proxy (401 UnAuthorized)


jeanpierrepolnareff91

Recommended Posts

Hello everyone,

I have found an interesting medium tutorial to configure a proxy on an apache server

(https://medium.com/code-divoire/reverse-proxying-an-angular-cli-spa-with-apache-and-tomcat-437cb8963a70)

 

I have followed this tutorial and updated my jasper configuration :

update of tomcat_path/config/server.xml :

<Connector port="8080" 
      connectionTimeout="20000" 
      redirectPort="8443"
      maxThreads="48" 
      minSpareThreads="10"           
      enableLookups="false"
      acceptCount="10" 
      debug="0" 
      URIEncoding="UTF-8"
      protocol="HTTP/1.1"
      hostname="my_custom_domain.tk"
      proxyName="my_custom_domain.tk"
      proxyPort="80" 
      scheme="http">
    </Connector>

update of tomcat_path/webapps/jasperserver-pro/webinf/js.config.properties with my proxy adress :

deploy.base.url = "http://my_custom_domain.tk"
report.scheduler.web.deployment.uri = "http://my_custom_domain.tk"

But when I launch the jasper server and sign in, I have a 401 unauthorized message and my webpage is reloading over and over without interruption.

Has someone already ran into that kind of problem before ?

 

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...