Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Nginx redirection 504 Gateway Time-out after upgrading confluence to latest version

Sanjay Chinthala December 22, 2018

Nginx redirection 504 Gateway Time-out after upgrading  confluence to the latest version

 

 

3 answers

0 votes
Sid
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 23, 2018

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

0 votes
Sanjay Chinthala December 22, 2018

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:CAM
add_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 Letsencrypt
location ^~ /.well-known/acme-challenge/ {
root /var/www/letsencrypt;
}
}

0 votes
Sanjay Chinthala December 22, 2018

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 Letsencrypt
location ^~ /.well-known/acme-challenge/ {
root /var/www/letsencrypt;
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events