Forums

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

Where is the server.xml file located at in the package to adjust for use behind cloudflare

Dan Regalia June 29, 2023

Hey all, I keep reading how to fix the XSRF Check failure due to https, and being behind cloudflare... How/Where is the server.xml file that needs to be changed to allow this to work?

1 answer

0 votes
Nic Brough -Adaptavist-
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.
June 29, 2023

Welcome to the Atlassian Community!

The server.xml file lives in the root of the data directory you defined for your Atlassian system. For example /home/jira/server.xml or /opt/atlassian/jira/home/server.xml

But you do need to go digging for it.  At least the directory

IMHO Cloudflare is a massive pain though.  It hides a  lot of stuff we need to know, including essential config files.  I don't know Cloudflare, so not sure where to look, but the principle is the same - you need to find the server.xml in use.

Dan Regalia July 3, 2023

Thanks Nic!  

If everything is thru a web interface, you should be able to hit it via port 80... or 443... simple stuff, but thanks, I'll go through and make the adjustments. 

I host cloudflare just because it's easier than exposing ports on the router, and blocks attack attempts.  To me, it makes good sense, especially if hosting a docker container on portainer.  

Dan Regalia July 3, 2023

Sadly, still getting this error:  Error creating project, XSRF check failed

 

Followed these instructions:  Creating Project Throws 'Error creating project, XSRF check failed' | Jira | Atlassian Documentation

 

Do I need to use this value:  

proxyName="proxy.atlassian.com"

or my information?  When I set it, the public port, and the translated ports are all different.  it goes 443--> 26551 --> 8080 

Suggest an answer

Log in or Sign up to answer