pigeonflight
(David Bain (Will Theme Plone Sites))
July 31, 2015, 2:26pm
1
Normally I do this in Apache or nginx with a rewrite like this:
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/https/yoursite.com:443/Plone/VirtualHostRoot/$1 [P,L]
Today I'm working with the TTW virtual_hosting (no access to configure the proxy).
Is there a way to set a mapping in {myinstance}/virtual_hosting/ so that https will work?
pigeonflight
(David Bain (Will Theme Plone Sites))
July 31, 2015, 2:33pm
2
I figured it out, putting this in the virtual_hosting mappings worked for me.
example.com/VirtualHostBase/https/example.com/Plone
explanation:
example.com represents the URL of my site
/VirtualHostBase/https/example.com forces zope to serve example.com over https://
/Plone represents the path to my plone site
wesleybl
(Wesley Barroso Lopes)
August 18, 2022, 2:40am
3
pigeonflight:
I figured it out, putting this in the virtual_hosting mappings worked for me.
example.com/VirtualHostBase/https/example.com/Plone
Would that "hinder" the Volto in any way? Would performance be worse?
I'm wanting to let Volto access Plone, but I'd like to access Plone directly, through a gateway, without going through an nginx. For gateway access to work with https, I would have to have the above solution. Is there another solution for this?
pigeonflight
(David Bain (Will Theme Plone Sites))
August 31, 2022, 1:17pm
4
Not sure that it will make a difference. Best to try it.
wesleybl
(Wesley Barroso Lopes)
August 31, 2022, 5:09pm
5
My question is whether having an entry in virtual_hosting along with a VirtualHostBase in the URL will slow things down.
djay
(Dylan Jay)
August 31, 2022, 6:02pm
6
No. it goes through the same code either way. We run our production using all TTW virtual host monster config so we can change things quickly.
1 Like
dieter
(Dieter Maurer)
August 31, 2022, 6:00pm
7
Wesley Barroso Lopes via Plone Community wrote at 2022-8-31 17:19 +0000:
My question is whether having an entry in virtual_hosting along with a VirtualHostBase in the URL will slow things down.
Likely a bit but probably not significantly.
If you really need to know, make measurements.