Nextcloud Redirect

Here are a couple ways to redirect https://my.domain.com/Nextcloud/ to https://my.domain.com/

<?php
header("Location: nextcloud");
?>

It just redirects the browser to the nextcloud folder,simple and easy.

Your nextcloud.conf vhost file, try this (within VirtualHost tags):

DocumentRoot /var/www/nextcloud
ServerName my.domain.com

<Directory /var/www/nextcloud/>
    Options +FollowSymlinks
    AllowOverride All

    <IfModule mod_dav.c>
        Dav off
    </IfModule>

    SetEnv HOME /var/www/nextcloud
    SetEnv HTTP_HOME /var/www/nextcloud

</Directory>

Then restart apache

$ sudo service apache2 restart

Try getting to it via the https://my.domain.com/

Nextcloud 14 Server using one shell script


Last Updates:

October, 26th 2018:
– added ssl early data directive to both: ssl.conf and proxy.conf
– added phpimagickexcepttion()

The initial script (install-nextcloud.sh) will install your self hosted Nextcloud within few minutes fully automated on either AMD64 or ARM64 (Odroid C2) environments. Your server will be built of:

Nextcloud 14 installation guide

(Ubuntu/Nextcloud 14/NGINX)


Nextcloud HowTo


Following this guide you will be able to install and configure Nextcloud 14.0.4 new latest based on Ubuntu 18.04.x LTS, NGINX 1.15.7 new , TLSv1.2 or TLSv1.3, PHP 7.2.10, MariaDB 10.3.10, Redis, fail2ban, firewall (ufw) and will achieve an A+ rating from as well Nextcloud as Qualys SSL Labs. We will request and implement your ssl certificate(s) from Let’s Encrypt in chapter 5. You only have to ammend the red marked values (YOUR.DEDYN.IO, 192.168.2.x, ssh port 22) regarding your environment!

Continue reading “Nextcloud 14 installation guide”