Greetings, pulling my hair our trying to get Plone 5.1 to work with apache rewriterule on CentOS 7.4. Wondering if it is a CentOS -ism? But not sure if it is a bug in Plone 5 on CentOS?
The exact same rewrite rule that works on my Suse server and Ubuntu server, does not work on the CentOS (new) server, same with straight from the Plone 5.1 docs (for ubuntu): https://docs.plone.org/manage/deploying/front-end/apache.html
the rewrite syntax: https://pastebin.com/pKnH2Z4W
with /Plone/ portion included, wont' work at all (resource not found). If I remove the /Plone/ portion, then just serves the root of the Plone instance for all the sites.
This is to host about 40 sites, with about 190 domains. The docs in 5.1 say I have to create separate config file for each and every domain. Please tell me that is now now the standard?
Wilfcard approach includes either SERVER_HOST (older version) or HTTP_HOST (newer version) (desired but not working on this server combo): %{HTTP_HOST} instead of manually coded /rpgbus
If I take out the /Plone portion, then redirect 8080 to 80 works for the wildcard domains, but I have to add the /domain (for example www.rpgbus.com/rpgbus if just www.rpgbus.com will just serve the root Plone
Serving the web, and trial an error, I have tried 46 different variations in syntax, from examples dating from 2009 to 2017, none quite get me there. It looks like CentOS is refusing to pass the /plone variable to the end from enabling detailed debugging rewrite engine. Here is output just hitting www.rpgbus.com which then just serves up the root of the plone instance: https://pastebin.com/ZES5Ddcn And here is what the logs show if hitting
http://www.rpgbus.com/rpgbus https://pastebin.com/afDhxpCi Setting up mappings in VHM doesn't seem to make any difference one way or the other either.
I can get one site to work if I hard code each Plone site manually, but previous versions worked with the wildcarded no problem. Any ideas?
Thanks for any suggestions.
Example with wildcards that no longer works correctly: RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/VirtualHostRoot/$1 [P,L]
Example with manual listing that works ONLY FOR THAT URL/DOMAIN (undesired approach): RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/www.rpgbus.com:80/rpgbus/VirtualHostRoot/$1 [P,L]
Please tell me I don't have to create 190 to 380+ .conf files, and there is a way to get wildcard working again.
Thanks!