• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Plesk Onyx and Plone 5.1 rewrite not working

Schoelje

New Pleskian
My server: ‪Debian 8.10‬ (Jessie)
Plesk: Onyx 17.8.11 Update #4
Plone: version 5.1

I have a working domain with SSL (Let's Encrypt) and a working Plone site.

I made sure all modules were enabled according to: Apache — Plone Documentation v5.1
Only proxy_http needed to be enabled.

I've created /var/www/vhosts/system/my_domain.com/conf/vhost.conf with the following content:
RewriteEngine On
RewriteRule ^/(.*) http://my_domain.com:8080/VirtualHostBase/https/%{HTTP_HOST}:443/Plone/VirtualHostRoot/$1 [P,L]

and restarted Apache with: sudo systemctl restart apache2

Unfortunately, even after a lot of experimenting nothing changed: I'm still left with a Plone site on http://my_domain.com:8080/Plone and a test site on https://my_domain.com

I found a similar but old thread in this forum: running zope by means of mod_rewrite
but the mentioned mods are already activated.

I can't seem to find the relevant information and I'm not a system administrator by trade.

Does anybody know what I'm doing wrong?
 
My bad!
I copied the content of vhost.conf to: /var/www/vhosts/system/my_domain.com/conf/vhost_ssl.conf
opened my_domain.com in the browser and it showed my Plone site with https.

Does the same code need to be in both vhost.conf and vhost_ssl.conf?
 
Back
Top