Nextcloud Sub Domain

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Burgess85
Posts: 19
Joined: Sat Mar 20, 2021 5:03 pm

Nextcloud Sub Domain

Post by Burgess85 »

Currently have nextcloud installed at example.com/nextcloud does anyone know how to install at cloud.example.com
User avatar
Joulinar
Posts: 4873
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Sub Domain

Post by Joulinar »

Hi,

would be good if you can share the web server used

@MichaIng
I recall a longer discussion with a user on GitHub about a similar setup. Maybe you can have a look.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3047
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Sub Domain

Post by MichaIng »

Puhh, ja I remember one case where I instructed a user how to do it and one year later during another web application install he ran into a then expected error and it took quite a while to remember that special setup and fix things. Note that there is not really any reason why a subdomain would be better to split applications compared to sub directories. For security reasons (to marke scraping a little harder), sub directories are actually better and easier to handle regarding HTTPS certificates and webserver-side settings/hardenings in general. Sub domains make sense when you use different physical servers which run different applications for the same domain/organisation, otherwise they will make things more complicated.

There are multiple ways to achieve it, via proxy, via rewrites or by changing the webroot, and the Nextcloud config needs to be altered. It depends hence whether Nextcloud is and will always be the same web application/website on that system or if you plan to add other ones, now or in the future.
Post Reply