Web server configuration
After the updater.sh script is run, the web server settings must be checked.
danger
The procedure in this section will only be necessary if the version of the environment that will be updated is 2.0.7 or earlier.
- Open the
setenv.sh
file:
# vi /usr/local/se/apps/tomcat/bin/setenv.sh
- Add the following line to the end of the file:
ulimit n 200000
- Save and close the configuration file:
:wq!
- Open the
NGinx
configuration file:
# vi /usr/local/se/apps/nginx/include.server
- In the
NGinx
configuration file, identify the"listen 443 ssl"
line and add thehttp2
parameter, as per the line below:
listen 443 ssl http2;
- Add or adjust the following settings in the
include.server
file:
access_log off;
root /usr/local/se/web/wwwroot/;
location ~_ ^/[^se][^/]._\.(php|inc)$ {
deny all;
}
if ($request_method = CONNECT) {
return 400;
}
if ($request_method = TRACE) {
return 400;
}
if ($request_method = OPTIONS) {
return 400;
}
- Check whether the following lines exist; if they do not, replace the
proxy_set_header Host $http_host;
line with the following lines:
proxy_set_header Host $host;
proxy_set_header Nginx-Server 1;
- Save and close the file:
:wq!