• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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