#1 2018-07-02 00:04:48

mkrause
Member
Registered: 2018-07-01

How to make reportserver accessible from other than root of webserver

Team,
I am new to tomcat admin, but am having good luck with the reportserver package so far.  One thing though, I want to move the reportserver hierarchy to a subdirectory so  it is not accessible from the default index -- just to add one later of obscurity for port scanners.

I tried doing this, but when trying to login directly, I an error about fonts not found and ReportServer wheel just turns in perpetuity.  Please advise on any tweaks I need to do to make the reportserver accessible from anywhere within the tomcat hierarchy.

thanks!

Offline

#2 2018-07-02 06:47:52

eduardo
Administrator
Registered: 2016-11-01
Website

Re: How to make reportserver accessible from other than root of webserver

Hi mkrause,

you can install ReportServer in any directory you need inside your tomcat webapps directory.
For that, it is easier to do a manual installation. Basically, you only have to install tomcat and move your ReportServer binaries to a webapps directory of your choice. Then execute the ddls, modify your persistence.properties, and that's it (a basic manual installation).
Check here: https://reportserver.net/en/tutorials/i … -practice/ for linux and here: https://reportserver.net/en/tutorials/i … n-windows/ for windows. You only have to execute the steps you need.

Regards,
Eduardo

Offline

#3 2018-07-10 22:55:52

mkrause
Member
Registered: 2018-07-01

Re: How to make reportserver accessible from other than root of webserver

Thanks for the reply.  I followed the original installation instructions to the letter (but instead use the MySQL ddls) and while the installation works perfectly if the hierarchy is in the /var/lib/tomcat7/webapps/ROOT folder, it does not work if I merely move everything to a subdirectory within that hierarchy.

If I wanted to move everything to a subdirectory after I did all of the setup, are there any configuration files I need to explicitly tell the new location ?    I don't want to redo the ddls as the server is already set up with plenty of reports already established there.

Please guide on what is necessary to move it ….

Offline

#4 2018-07-11 06:45:58

eduardo
Administrator
Registered: 2016-11-01
Website

Re: How to make reportserver accessible from other than root of webserver

mkrause wrote:

if the hierarchy is in the /var/lib/tomcat7/webapps/ROOT folder, it does not work if I merely move everything to a subdirectory within that hierarchy.

So are you moving the files to /var/lib/tomcat7/webapps/ROOT/reportserver ?
The right place should be: /var/lib/tomcat7/webapps/reportserver , then you should be able to reach reportserver by: http://YOUR_IP/reportserver/ReportServer.html

Please try this and let us know.

Regards,
Eduardo

Offline

#5 2018-07-11 13:53:24

mkrause
Member
Registered: 2018-07-01

Re: How to make reportserver accessible from other than root of webserver

If I move things outside webapps/ROOT the files are completely inaccessible from remote.

Offline

#6 2018-07-12 04:18:13

mkrause
Member
Registered: 2018-07-01

Re: How to make reportserver accessible from other than root of webserver

Here is a screenshot of what happens when I move the root dir with reportserver hierarchy to anything other than the root level of ROOT. (and going straight to webapps results in it being unrecognized completely).

https://www.dropbox.com/s/3pwvh1u386qyw … l.png?dl=0

Offline

#7 2018-07-12 07:23:46

eduardo
Administrator
Registered: 2016-11-01
Website

Re: How to make reportserver accessible from other than root of webserver

Hi mkrause,

in the tutorial, you install Apache Tomcat together with Authbind.

Reportserver can be placed in any directory within your webapps directory. If you perform a fresh tomcat installation, and just copy the reportserver files to ..webapps/reportserver, you can reach your reportserver by: http://localhost:8080/reportserver/ReportServer.html

With Authbind you change the default port to 80. Your reportserver should then be reachable by: http://localhost:80/reportserver/ReportServer.html, i.e.: http://localhost/reportserver/ReportServer.html. If it is not, please check the Tomcat and Authbind documentation for investigating.
Regarding your approach of moving reportserver to a subdirectory of ROOT: as reportserver is a web application, it must be recognized by tomcat as such in order to be deployed. When you move the files to a subdirectory, Tomcat has to be reconfigured for beeing able recognize the application as a web application. Again, refer to the Tomcat documentation / Tomcat forums for these specific Tomcat configurations.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB