HTTPS with redirection to other domain with apache virtual host
问题 I would like to redirect a virtual host on my server to another domain, which is running on HTTPS. I also would like to only show the original url, hence using the P flag for proxy. Here is the current configuration : RewriteEngine on SSLProxyEngine on RewriteCond %{HTTP_HOST} ^subdomain1\.domain1\.ext1$ [NC] RewriteRule ^(.*) https://subdomain2.domain2.ext2$1 [L,R,P] Should I generate a certificate on domain1 with certbot? What webroot should I associate? Should I include the one from