Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:adm:server_preparation [2020/01/13 13:32]
urbanl Uprava návodu instalace tomcat zpět na ruční instalaci tomcatu 8
tutorial:adm:server_preparation [2020/04/15 14:16]
fiserp [Apache Tomcat configuration]
Line 45: Line 45:
 ===== PostgreSQL ===== ===== PostgreSQL =====
 <note tip>If you are install CzechIdM on Sql server, please follow [[tutorial:​adm:​mssql_database_support|this tutorial]].</​note>​ <note tip>If you are install CzechIdM on Sql server, please follow [[tutorial:​adm:​mssql_database_support|this tutorial]].</​note>​
-CentOS7 default repository version of PostgreSQL is 9.2. In our tutorial, we will install newer version 9.6. Moreover, we install database data into /data not /var/lib which is the default option.+CentOS7 default repository version of PostgreSQL is 9.2 but IdM not support that version. In our tutorial, we will install newer version 9.6. Moreover, we install database data into /data not /var/lib which is the default option.
 ==== Database server installation - CentOS7 ==== ==== Database server installation - CentOS7 ====
   * Software installation (versions can vary):   * Software installation (versions can vary):
Line 412: Line 412:
   * Make Tomcat listen only on localhost:   * Make Tomcat listen only on localhost:
     * In the ''/​opt/​tomcat/​current/​conf/​server.xml''​ add the ''​address="​127.0.0.1"''​ property to configuration of ''​8009''​ and ''​8080''​ ports.     * In the ''/​opt/​tomcat/​current/​conf/​server.xml''​ add the ''​address="​127.0.0.1"''​ property to configuration of ''​8009''​ and ''​8080''​ ports.
 +
 +  * Set the ''​maxSwallowSize''​ for the HTTP/1.1 connector:
 +    * In the ''/​opt/​tomcat/​current/​conf/​server.xml'',​ locate the configuration for port 8080 and add the ''​maxSwallowSize="​-1"''​ property therein.
  
   * Do not show aplication server version:   * Do not show aplication server version:
Line 437: Line 440:
  
 === Rotating Tomcat logs === === Rotating Tomcat logs ===
-Default Tomcat logger appneds to the logfile, it is therefore safe to use simple ''​logrotate''​ configuration. Save following as ''/​etc/​logrotate.d/​tomcat'',​ adjust log retention (the ''​rotate COUNT''​) ​as necessary.+Default Tomcat logger appneds to the logfile, it is therefore safe to use simple ''​logrotate''​ configuration. Save following as ''/​etc/​logrotate.d/​tomcat'',​ adjust log retention ​as necessary ​(recommended default is to keep at least three month's worth of logs).
 <file txt tomcat> <file txt tomcat>
 /​opt/​tomcat/​current/​logs/​catalina.out { /​opt/​tomcat/​current/​logs/​catalina.out {
- rotate ​COUNT+ rotate ​90
  daily  daily
  dateext  dateext
Line 532: Line 535:
 <​VirtualHost _default_:​80>​ <​VirtualHost _default_:​80>​
    ​DocumentRoot /​var/​www/​html    ​DocumentRoot /​var/​www/​html
-   ​Redirect permanent / https://server+   ​Redirect permanent / https://SERVER/
 </​VirtualHost>​ </​VirtualHost>​
 </​code>​ </​code>​