Love Diet Pi! Such low memory footprint and running processes. It’s the distro of choice for all my SBC needs! So thanks to all who make this possible.
I have a problem I hope someone might know the answer to. Currently I have nextcloud installed and working when pointing to /nextcloud however I’d like nextcloud to be accessible just using the root http://192.168.1.2
You would need to change this line, but you also have to adjust the paths in /etc/lighttpd/conf-available/99-dietpi-nextcloud.conf and activate the modified config. Also anything else in /var/www is then not accesible anymore, since the root would be /var/www/nextcloud.
# multiple sockets
$SERVER["socket"] == ":8080" {
server.document-root = "/var/www/nextcloud"
}
But you have also adjust again some stuff in `/etc/lighttpd/conf-available/99-dietpi-nextcloud.conf` since only adding this to the config gives a 404 error.
[Edit]: But it seems more changes somewhere else are necessary, since only changing this gives a 404 error.
[/Edit]
Do you use nextcloud only inside your LAN? Do you use any domains to access nextcloud from the internet?
Then I made a copy of 99-dietpi-nextcloud.conf and called it 100-dietpi-nextcloud.conf. I did this so that next cloud will still work on the original HTTP address if I ever accessed it.
Then I changed my 100-dietpi-nextcloud.conf to look like this.
In this case, it doesn’t make sense to move ports of Nextcloud web server. There is 0 benefit related to security as you are still reachable on 80/443 from extern. For the external access it doesn’t matter what internal ports you are using.