Message "failed to lock the page" when tring to edit a page

Thank you, I can confirm that your solution is working, using the Tomcat Installation (XWiki.org) info.

Configuring tomcat for https

Although allowing users to directly connect to tomcat is not recommended, for a variety of reasons it may be desirable to configure tomcat to serve pages over an https connection.If using another server as a HTTPS proxy (such as Nginx or Apache httpd), follow instruction below to avoid unexpected error (such as “failed to lock page”).

  • If using HTTPS for accessing XWiki, several modifications have to be made to ensure proper functionality. Since urls are generated from relative path (/xwiki/bin/show/Space/Page), Tomcat has to know which protocol to use, otherwise JSON requests with redirect fails (attachment uploads, extension updating, etc.)
  • Modify connector (in server.xml) to <Connector port=“8080” … secure=“true” scheme=“https” >
  • Modify host (in server.xml) and add Remote Ip Valve (only needed if using another server for HTTPS)
1 Like