好友
阅读权限10
听众
最后登录1970-1-1
|
在主机 192.168.10.3上运行WordPress: docker run --name wordpress -p 81:80 -d wordpress在主机 192.168.10.5配置Nginx转发 http 可以正常转发,https 访问跳内网ip。。。 server { listen 80; server_name xxx.com; location / { proxy_set_header HOST $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://192.168.10.3:81; }}server { listen 443 ssl; server_name xxx.com; ssl_certificate 3147007.pem; ssl_certificate_key 3147007.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { proxy_set_header HOST $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://192.168.10.3:81; }} |
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|