Nginx SSL inside a docker container

前端 未结 1 408
暖寄归人
暖寄归人 2021-02-02 10:19

I have configured a Docker container to run Nginx and setup the /etc/nginx/sites-available/default file as shown below

server 
{
 listen 80 default_server;
 list         


        
相关标签:
1条回答
  • 2021-02-02 10:52

    You have interchanged the ports. According to this command line -p 8080:443 -p 8081:80, you should do:

    https://example.com:8080 note this is https

    and

    http://example.com:8081

    This should work

    0 讨论(0)
提交回复
热议问题