The resulting url is something like: mysite.com/plonestuff
I'm currently using a configuration like this:
upstream plone {
server 127.0.0.1:8080;
server 127.0.0.1:8081;
keepalive 64;
}
server {
listen 83 default_server;
location ~/plonestuff(.*)$ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://plone/VirtualHostBase/https/mysite.com:443/Plone/VirtualHostRoot/_vh_plonestuff/$1;
}
It seems that the request vars are dropped somewhere between the front server and when it gets to Plone. This is a problem whenever plone functionality relies on request vars. For example batching.
One thing I didn't mention was that I have other rules which get priority over this one, as a result I couldn't use the normal location. It might be fine under other circumstances.