Setting URL to https

Hello There I am again :slight_smile:,

I managed to install XWiki in the meantime with .dep package method. Now I would like to enable https for all traffic. Just http doesn’t meet our corporate requirements. What I found was this and Stefana provided me this link as well:

https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#HConfiguringtomcatforhttps

When I activate it like described:

    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               **secure="true"**
**               scheme="https" />**
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               secure="true"
               scheme="https" />
    -->

No https is working. Can someone tell me what I did wrong, please? Thank you for your help.

Hello, no I didn’t because of this comment: only needed if using another server for HTTPS. Because the webserver came with the .deb package. If it’s needed anyway I need to configure this as well and try again

Yes, just realized it and removed my comment :wink: but you were too fast to answer! :slight_smile:

I haven’t configured HTTPs myself for Tomcat so I don’t know. All I know is that it’s transparent for XWiki and it’s thus a servlet container thing. You could get help on the tomcat forums/docs too.

What error do you get?

Maybe enable tomcat logs?