![config apache tomcat config apache tomcat](https://4.bp.blogspot.com/-GyYUuFhqim4/WdWk8_cZvOI/AAAAAAAAJfA/ZYebf1r4UJM597rK3YKKmjFRc3d_JhoHwCLcBGAs/s1600/elk5.png)
![config apache tomcat config apache tomcat](https://www.ibm.com/docs/de/SSHS8R_7.1.0/com.ibm.worklight.installconfig.doc/install_config/Pictures/Tomcat_Win_Service_Installer_properties.jpg)
The modification so far passes every single JRS request from Apache to Tomcat, including requests for static files. So far so good, but we still need a better of dealing with static files. What you have accomplished so far is to put the Apache web server in front of Tomcat.
![config apache tomcat config apache tomcat](https://i.pinimg.com/originals/88/19/eb/8819eb1419912362e5b31e41d1bb22c6.png)
If you now go to you should see the normal JasperReports Server login screen. Save the file, and restart the apache service (/etc/init.d/apache2 restart). This makes it so that you can request JRS via the Apache web server. Add the following line under the DocumentRoot entry. You can add entries right below the "DocumentRoot" line, within the VirtualHost settings. For both cases, you'll need to modify /etc/apache2/sites-enabled/000-default. That step is covered in the next section.Ĭonfigure which URLs to manage with ApacheĪt this point, you'll need to configure Apache to tell it which URLs to process and hand off to Tomcat, and which URLs you want Apache itself to process. In that case, all you have to do if undo the changes you made to the nf file, and reference the worker in the 000-default file. The directive will specify where workers.properties file is located, and you can edit it to either add your own worker configuration to it, or, what is more likely, to use a worker that's already defined there that takes care of the AJP connector. If that happens, you can check the mods-available directory for the jk.conf file, which will contain an entry to the JkWorkersFile directive. When restarting the Apache web server, it's possible that you may get a JkWorkersFile only allowed once error message after making that last modification to nf that's because the workers file has been defined elsewhere.
Config apache tomcat update#
# Update this path to match your logs directory location (put mod_jk.log next to access_log) # Update this path to match your local state directory or logs directory