Exploring using the Nextcloud high-speed back end using proxy?

Discussion in 'ISPConfig 3 Priority Support' started by tlove, Jul 16, 2021.

  1. tlove

    tlove Member HowtoForge Supporter

    Nextcloud is offering high speed back end code to address sync speed problems.
    This requires using a proxy-server for security of credentials and update to php 8
    Instructions for apache are:
    "To use apache as a reverse proxy you first need to enable the proxy modules using
    sudo a2enmod proxy
    sudo a2enmod proxy_http
    sudo a2enmod proxy_wstunnel
    Then add the following lines to the <VirtualHost> block used for the Nextcloud server.
    ProxyPass /push/ws ws://127.0.0.1:7867/ws
    ProxyPass /push/ http://127.0.0.1:7867/
    ProxyPassReverse /push/ http://127.0.0.1:7867/
    Afterwards you can restart apache using
    sudo systemctl restart apache2 "
    (https://github.com/nextcloud/notify_push)
    How is best to do this for a site running on ISPConfig?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Run this on the shell as root:

    Code:
    sudo a2enmod proxy
    sudo a2enmod proxy_http
    sudo a2enmod proxy_wstunnel
    Then add this to the apache directives field of the website:

    Code:
    ProxyPass /push/ws ws://127.0.0.1:7867/ws
    ProxyPass /push/ http://127.0.0.1:7867/
    ProxyPassReverse /push/ http://127.0.0.1:7867/
     
  3. tlove

    tlove Member HowtoForge Supporter

    Thank you Till,
    So simple. Somehow, I have difficulty believing the directives field can be so easy to use!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Basically, anything you put in the apache directives field will be put inside the <VirtualHost> block.
     

Share This Page