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

**URL:** <https://forum.xwiki.org/t/message-failed-to-lock-the-page-when-tring-to-edit-a-page/7609>\
**Category:** Help / Discuss\
**Created:** [October 17, 2020, 7:48am UTC](https://forum.xwiki.org/t/message-failed-to-lock-the-page-when-tring-to-edit-a-page/7609 "2020-10-17T07:48:52Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![Yuri](https://forum.xwiki.org/user_avatar/forum.xwiki.org/yuri/32/4515_2.png) [@Yuri](https://forum.xwiki.org/u/Yuri)\
**Post date:** [September 15, 2022, 8:45am UTC](https://forum.xwiki.org/t/message-failed-to-lock-the-page-when-tring-to-edit-a-page/7609/24 "2022-09-15T08:45:39Z")

</div>

Thank you, I can confirm that your solution is working, using the Tomcat Installation ([XWiki.org](http://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)

---

_[View the full topic](https://forum.xwiki.org/t/message-failed-to-lock-the-page-when-tring-to-edit-a-page/7609)._
