[GH-ISSUE #231] HTTPS Access Document Server on Windows #126

Closed
opened 2026-02-26 09:36:43 +03:00 by kerem · 10 comments
Owner

Originally created by @Tumtum2814 on GitHub (Mar 6, 2020).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/231

What is the current behavior?
Onlyoffice document server should load on HTTPS

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
I created a docker container with the document server, using the instruction on the github page. I have tried it both with leaving 443 as the SSL port and by changing the port. Both load ONLYOFFICE Document sertver under HTTPS but when trying to access HTTPS firefox shows the connection gets reset. I've tried accessing it externally(mydomain.net:1234), on a pc on the same network( 192.168.1.XXX:1234) and locally(127.0.0.1:1234) with the same behavior.
What is the expected behavior?
Seeing the Documentserver window show up and run on HTTPS
Did this work in previous versions of DocumentServer?
N/A
DocumentServer Docker tag:
? funny_clarke
Host Operating System:
Windows 10

Originally created by @Tumtum2814 on GitHub (Mar 6, 2020). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/231 **What is the current behavior?** Onlyoffice document server should load on HTTPS **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** I created a docker container with the document server, using the instruction on the github page. I have tried it both with leaving 443 as the SSL port and by changing the port. Both load ONLYOFFICE Document sertver under HTTPS but when trying to access HTTPS firefox shows the connection gets reset. I've tried accessing it externally(mydomain.net:1234), on a pc on the same network( 192.168.1.XXX:1234) and locally(127.0.0.1:1234) with the same behavior. **What is the expected behavior?** Seeing the Documentserver window show up and run on HTTPS **Did this work in previous versions of DocumentServer?** N/A **DocumentServer Docker tag:** ? funny_clarke **Host Operating System:** Windows 10
kerem 2026-02-26 09:36:43 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@ShockwaveNN commented on GitHub (Mar 6, 2020):

Could you change ssl port from 1234 to 443 and see if everything is fine?

<!-- gh-comment-id:595627867 --> @ShockwaveNN commented on GitHub (Mar 6, 2020): Could you change ssl port from 1234 to 443 and see if everything is fine?
Author
Owner

@Tumtum2814 commented on GitHub (Mar 6, 2020):

i have tried both a custom port and the default ssl port (443) with the same result unfortunately :(

<!-- gh-comment-id:595882625 --> @Tumtum2814 commented on GitHub (Mar 6, 2020): i have tried both a custom port and the default ssl port (443) with the same result unfortunately :(
Author
Owner

@ShockwaveNN commented on GitHub (Mar 10, 2020):

@Tumtum2814 could you provide docker run command for documentserver you using?

<!-- gh-comment-id:596991380 --> @ShockwaveNN commented on GitHub (Mar 10, 2020): @Tumtum2814 could you provide `docker run` command for documentserver you using?
Author
Owner

@Tumtum2814 commented on GitHub (Mar 10, 2020):

@ShockwaveNN sure! docker run -i -t -d -p 2266:80 -p 443:443 --restart=always onlyoffice/documentserver

<!-- gh-comment-id:597148027 --> @Tumtum2814 commented on GitHub (Mar 10, 2020): @ShockwaveNN sure! `docker run -i -t -d -p 2266:80 -p 443:443 --restart=always onlyoffice/documentserver`
Author
Owner

@ShockwaveNN commented on GitHub (Mar 10, 2020):

@Tumtum2814 you should mount certificates inside container at /var/www/onlyoffice/Data as described in instruction here
Without certs https connection will not work

<!-- gh-comment-id:597150755 --> @ShockwaveNN commented on GitHub (Mar 10, 2020): @Tumtum2814 you should mount certificates inside container at `/var/www/onlyoffice/Data ` as described in instruction [here](https://github.com/ONLYOFFICE/Docker-DocumentServer#running-onlyoffice-document-server-using-https) Without certs https connection will not work
Author
Owner

@Tumtum2814 commented on GitHub (Mar 10, 2020):

@ShockwaveNN does the -v command work on windows 10? Obviously I don't have a /var directory. Do i basically need to grab those certs and install them on windows web services or a windows apache or nginx install?

<!-- gh-comment-id:597155119 --> @Tumtum2814 commented on GitHub (Mar 10, 2020): @ShockwaveNN does the -v command work on windows 10? Obviously I don't have a /var directory. Do i basically need to grab those certs and install them on windows web services or a windows apache or nginx install?
Author
Owner

@ShockwaveNN commented on GitHub (Mar 10, 2020):

@Tumtum2814 sorry, cant help you with windows stuff, I'm not sure if Docker of DocumentServer will work on Windows 10, but mount paths inside container should be same, outside path should windows specific
Maybe @DenisDeeSign know some info

<!-- gh-comment-id:597157322 --> @ShockwaveNN commented on GitHub (Mar 10, 2020): @Tumtum2814 sorry, cant help you with windows stuff, I'm not sure if Docker of DocumentServer will work on Windows 10, but mount paths inside container should be same, outside path should windows specific Maybe @DenisDeeSign know some info
Author
Owner

@Tumtum2814 commented on GitHub (Mar 16, 2020):

ok, thanks for trying! I'll wait and see if @DenisDeeSign can help out!

<!-- gh-comment-id:599689472 --> @Tumtum2814 commented on GitHub (Mar 16, 2020): ok, thanks for trying! I'll wait and see if @DenisDeeSign can help out!
Author
Owner

@igwyd commented on GitHub (Dec 22, 2020):

Hello @Tumtum2814 , sorry for the late reply.
You need to copy your tls.crt and tls.key in mounted volumes, for example:
Start container with volumes

docker run -i -t -d -p 443:443 --restart=always `
 -v C:\app\onlyoffice\DocumentServer\data:/var/www/onlyoffice/Data onlyoffice/documentserver

Create folder with name "certs" in "C:\app\onlyoffice\DocumentServer\data", copy tls.crt and tls.key here (full path C:\app\onlyoffice\DocumentServer\data\certs). Restart container

docker restart <container_id>

Open https://<your_ip_or_domain_name>

<!-- gh-comment-id:749465805 --> @igwyd commented on GitHub (Dec 22, 2020): Hello @Tumtum2814 , sorry for the late reply. You need to copy your tls.crt and tls.key in mounted volumes, for example: Start container with volumes ``` docker run -i -t -d -p 443:443 --restart=always ` -v C:\app\onlyoffice\DocumentServer\data:/var/www/onlyoffice/Data onlyoffice/documentserver ``` Create folder with name "certs" in "C:\app\onlyoffice\DocumentServer\data", copy tls.crt and tls.key here (full path C:\app\onlyoffice\DocumentServer\data\certs). Restart container ``` docker restart <container_id> ``` Open https://<your_ip_or_domain_name>
Author
Owner

@Rita-Bubnova commented on GitHub (Jun 14, 2024):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:2167564851 --> @Rita-Bubnova commented on GitHub (Jun 14, 2024): I close this issue. Feel free to comment or reopen it if you got further questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#126
No description provided.