问题原文
原帖链接 · 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/jennybut 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:
- Is this going to work?
- 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
