You have to learn how your ApacheServer or NginxServer works.
You have to use rewrite rules to get rid of /index.php
You have to do a mod in your conf file for having just https://mydomain.com
Look at others Tutorials on how to install Nextcloud, some of them explain how to have /nextcloud or not.
This tutorial can help you on Apache2. It exists for Nginx on this website too
No the nextcloud folder is right where he is.
It’s apache or nginx to have a conf changed.
Nextcloud can (must) be in /var/www/nextcloud or /var/www/html/nextcloud
The more important is that servername is mydomain.com and the path root is well written.
I setup more then 100 installs, never I put it in a subdirectory.
Offcourse you can edit you’re alias to /var/www/nexcloud (if you use that kind of path)
But if you use a domain name only for NC it can be easier to use the already setup main domain.
Yes but it’s more clear to use folders.
On all my Servers i always have other pages, not just nextcloud.
My www folder look like this (it’s an exemple)
Nextcloud
Matomo
Phpmyadmin
WordPress
This way my www root is empty, it have just folders.
Leave the path /var/www/nextcloud as is and leave the Nextcloud data in there. Now edit your apache2.conf and change the Directory directive as follows:
FROM
<Directory /var/www/>
Options FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
TO
<Directory /var/www/nextcloud/>
Options FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
This change ensures, that whenever you call your domain, it will use the /var/www/nextcloud as main directory (i.e. call any index.{htm,html,php} from that directory)
Please note:
The above solution should only be used, if Nextcloud is the only web application running on your server. If you have other websites / web applications running on your server, you should create another apache.conf and call it nextcloud.conf for example.
Hint:
Best practice with Apache is to create a separate config file for each website / web application without changing the original apache2.conf file.
How you handle your Apache depends on your Linux Distro (Ubuntu, CentOS, Debian, etc.)
Thank you CFelix for your quick prompt i just change it but still the same should i run occ maintenance ?
`sudo -u apache php occ maintenance:update:htaccess