Can't connect to the server Looks like your session expired. Log in again to keep working.
Asked by J?rgen M. Madsen:

Hi guys.

Cant create new pages anymore. Seems like session is exespiring each time I try.  
Her my apache settings.

\<VirtualHost \*:80\>  
ServerAdmin webmaster@domain.lan  
Servername wiki.domain.lan  
DocumentRoot /opt/atlassian/confluence  
ProxyPreserveHost On  
# Servers to proxy the connection, or  
# List of application servers Usage  
ProxyPass / http://localhost:8090/  
ProxyPassReverse / http://localhost:8090/  
RewriteEngine on  
RewriteCond %{SERVER_NAME} =wiki.domain.lan  
RewriteRule \^ https://%{SERVER_NAME}%{REQUEST_URI} \[END,NE,R=permanent\]  
\</VirtualHost\>

--

\<IfModule mod_ssl.c\>  
\<VirtualHost \*:443\>  
ServerAdmin webmaster@domain.lan  
Servername wiki.uluru.dk  
DocumentRoot /opt/atlassian/confluence  
ProxyPreserveHost On  
# Servers to proxy the connection, or  
# List of application servers Usage  
ProxyPass / http://localhost:8090/  
ProxyPassReverse / http://localhost:8090/

<br />

SSLCertificateFile /etc/letsencrypt/live/wiki.domain.lan/fullchain.pem  
SSLCertificateKeyFile /etc/letsencrypt/live/wiki.domain.lan/privkey.pem  
Include /etc/letsencrypt/options-ssl-apache.conf  
\</VirtualHost\>  
\</IfModule\>

----

I found suggestion to also modify the server.xml file, and I've tried the following:

\<Server port="8000" shutdown="SHUTDOWN" debug="0"\>  
\<Service name="Tomcat-Standalone"\>  
\<Connector port="8090" connectionTimeout="20000" redirectPort="8443"  
maxThreads="48" minSpareThreads="10"  
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"  
protocol="org.apache.coyote.http11.Http11NioProtocol" /\>  
proxyName="wiki.domain.lan" proxyPort="443" scheme="https"

Any help or suggestions would be appreciated.

Thank you.


Answers:
author: AnnWorley
body: Hi!

I understand you cannot create new pages any more in your Confluence instance. Please let me know if you can edit existing pages.

If you are seeing this behavior after an upgrade from Confluence 5.x to a version higher than Confluence 6, the issue could be that you need to set up the proxy to support collaborative editing.

Please see this configuration guide if the editing issues are happening after an upgrade: [Using Apache with mod_proxy](https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html)

If there was no Confluence upgrade involved, please let me know when you started noticing that you couldn't create pages, and whether there were any recent changes or upgrades in the environment that may correspond with that time.

It would also be helpful to know the error message you see that indicates your session is expiring.

I look forward to hearing whether the proxy configuration helps.

comments: author: J?rgen M. Madsen
body: Hi Ann.  
Thank you for replying.

I've tried the following:

\<VirtualHost \*:80\>  
ServerAdmin webmaster@domain.lan  
Servername wiki.domain.lan  
# DocumentRoot /opt/atlassian/confluence  
# ProxyPreserveHost On  
# Servers to proxy the connection, or  
# List of application servers Usage  
ProxyRequests Off  
ProxyVia Off

\<Proxy \*\>  
Require all granted  
\</Proxy\>

ProxyPass / http://localhost:8090/  
ProxyPassReverse / http://localhost:8090/  
RewriteEngine on  
RewriteCond %{SERVER_NAME} =wiki.domain.lan  
RewriteRule \^ https://%{SERVER_NAME}%{REQUEST_URI} \[END,NE,R=permanent\]  
\</VirtualHost\>

All mod proxy modules enabled.  
I still have no idea whats wrong. The config above worked in 6.2 and 6.3 on my own server but after update to 6.5/6.6 it all went downhill.


author: Maya_Chase
body: Could I know what the outcome of this was please? We're having the same problem, although we did NOT upgrade Confluence, it just started happening the last day or so. We are able to edit existing pages but not add new ones. I'm checking with our Ops department to see if any recent changes were made that would affect the proxy settings.


author: Jacek Zarzycki
body: Hi

I have this problem on version 7.14.1. Just updated from 7.13.2  
Creation and editing is no posible.  


author: Yannick Djomo
body: I have that same error message, and would appreciate if someone has a solution to it. Thanks.


author: Allana Cameron
body: I am also receiving this error **every** time I try to create and/or edit a page in Confluence. We use [Atlassian Confluence 7.17.4 .](http://www.atlassian.com/software/confluence)

It is creating an incredible amount of re-work as I have to continue to attempt my changes until "finally" they will save.

I echo the others, please provide direction on how to solve this issue.


author: serge calderara
body: [@Allana Cameron](/t5/user/viewprofilepage/user-id/5030255) , did you manage to find any thing, I have same issue on confluence 7.20.1

thanks