• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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