Nginx redirection 504 Gateway Time-out after upgrading confluence to the latest version
server {access_log /home/cchq/www/production/log/wiki_http-nginx_access.log rt_cache;error_log /home/cchq/www/production/log/wiki_http-nginx_error.log warn;server_tokens off;server_name wiki..org help..org;listen 80;proxy_set_header Host $host;error_page 502 503 /errors/50x.html;error_page 400 /errors/400.html;location / {return 301 https://$server_name/display/commcarepublic/Home;}# For Letsencryptlocation ^~ /.well-known/acme-challenge/ {root /var/www/letsencrypt;}}
server {access_log /home/cchq/www/production/log/wiki-nginx_access.log rt_cache;error_log /home/cchq/www/production/log/wiki-nginx_error.log warn;ssl_certificate /etc/pki/tls/certs/production_nginx_combined.crt;ssl_certificate_key /etc/pki/tls/private/production_nginx_commcarehq.org.key;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMadd_header Strict-Transport-Security "max-age=300";server_tokens off;server_name wiki..org help.proxy_set_header Host $host;error_page 502 503 /errors/50x.html;error_page 400 /errors/400.html;location / {proxy_pass https://confluence.com;}location = / {return 302 https://$server_name/display/public/Home;}location /errors {alias /home/cchq/www/production/error_root/pages;}# For Letsencryptlocation ^~ /.well-known/acme-challenge/ {root /var/www/letsencrypt;}}
Hi @Sanjay Chinthala,
Upgrading the applications will rewrite the server.xml file in your installation directory. So need to modify the files before restarting the service. Make sure you have the correct configurations set
FYI, It also rewrites the setenv.sh file which is also located in the installation directory where you give your JVM values.
Best option would be copy the files (server.xml and setenv.sh) from your old installation to new upgraded installation and restart the service
Let me know if you still see the error
It looks like you're new here. Sign in or register to get started.