Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

nginx代理confluence 遇到的问题

我用nginx代理confluence,发现如果用域名访问的话,编辑文件保存之后新增的内容不会实时刷新到页面上,需要手动点击浏览器的刷新按钮才会把新内容刷新出来。

但是如果用ip+port访问的话,新增内容保存之后会实时刷新出来。

我的nginx配置如下:

server {
listen 80;
server_name xxxx.com;

location / {
proxy_pass http://localhost:8090;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 15s;
proxy_read_timeout 30s;
proxy_temp_file_write_size 64k;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_http_version 1.1;
proxy_set_header Connection "";

client_max_body_size 100m;
}

access_log /data/logs/xxxx.com.log access;
}

1 answer

0 votes
Daniel Eads Atlassian Team Feb 05, 2021

Hello @陈土锋 , welcome.

Versions of Confluence Server after 6.0 have another service that enables collaborative editing. You may want to add this location block to your nginx server configuration and reload nginx, as described in the Confluence + nginx documetation:

    location /synchrony {
 client_max_body_size 100m;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://localhost:8091/synchrony;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

 This may the cause of the problem you are experiencing.

Cheers,
Daniel | Atlassian Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,390 views 7 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you