大网数据广告活动
网站运营与故障问答

How to set up a reverse proxy on an SSL subdirectory from another server?

· 52CE 我爱测

Setup is as follows: Our agency's client's domain is https://www.example.com (with SSL certificate from Amazon) They have NGINX severs, and manage their own hosting They want us to build a few simple pages on example.com/jenny bu…

问题原文

原帖链接 · Baumr · CC BY-SA 4.0

Setup is as follows:

  • Our agency's client's domain is https://www.example.com (with SSL certificate from Amazon)
  • They have NGINX severs, and manage their own hosting
  • They want us to build a few simple pages on example.com/jenny but want us to host the content on another web server and not involve their developers
  • It's been a while since I've worked with servers and WordPress

My plan is:

  • Buy some webspace (e.g. on CloudWays) and install WordPress on it to host a few pages
  • Have our agency's client set up a reverse proxy from their subdirectory (example.com/jenny) to our server's IP address (e.g. 86.7.53.09)
  • CloudWays includes 1-click install of free SSL certificates (e.g. Let's Encrypt)

Problem and question is:

  1. Is this going to work?
  2. Will we even be able to set up an SSL certificate on an IP address without a domain name and then have it work with our client's domain name?

I'm concerned that the certificates will change as the user goes from the main site to our subdirectory and they'll get a notification in their browser, or they will cause a conflict.

已采纳解答

原帖链接 · DKing · CC BY-SA 4.0

The visitor would never know that the subdirectory is hosted elsewhere. They are only connecting to the main server for the web page, and that's the server which serves the SSL.

When the client connects, they connect to wherever www.example.com resolves, and that is where they send the HTTPS request, and that is what serves the the SSL. On that server, it just happens to get the content from some pages from directories on the server itself, and for other pages, it makes an entirely separate connection, just between itself and your server.

There is a separate consideration of whether you are going to have an SSL for the www.example.com server to connect to your server, but this would not be anything the visitor would see, and would not in any way affect the way they interact with the website's SSL.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-07-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。