Nextcloud version (eg, 29.0.5): 30.0.0
Operating system and version (eg, Ubuntu 24.04): openSUSE Tumbleweed
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.61 (Linux/SUSE)
PHP version (eg, 8.3): PHP 8.3.9
THE ISSUE
<VirtualHost *:443t>
Alias /nextcloud /srv/www/htdocs/nextcloud/
...
config.php:
'htaccess.RewriteBase' => '/nextcloud',
'overwrite.cli.url' => 'https://myhost.net/nextcloud',
Then I can access https://myhost.net/nextcloud
BUT: I get warnings like so:
* Your webserver is not set up to serve `.js.map` files. Without these files, JavaScript Source Maps won't function properly, making it more challenging to troubleshoot and debug any issues that may arise.
* Unable to run check for JavaScript support. Please remedy or confirm manually if your webserver serves `.mjs` files using the JavaScript MIME type. To allow this check to run you have to make sure that your Web server can connect to itself. Therefore it must be able to resolve and connect to at least one of its `trusted_domains` or the `overwrite.cli.url`. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.
* Could not check that your web server serves security headers correctly, unable to query `/nextcloud/heartbeat` For more details see the documentation ↗.
If I remove the Alias from <VirtualHost>
, and do:
config.php:
'htaccess.RewriteBase' => '/',
'overwrite.cli.url' => 'https://myhost.net/',
The tests work, and I get rid of the warnings in Nextcloud.
BUT: now I have to access through the host URL, without the /nextcloud -part
https://myhost.net/
The warnings became an issue sometime in NC 28 or 29: Upgrade to Nextcloud 28 — Nextcloud latest Administration Manual latest documentation
I never bothered with it, but now it’s getting annoying enough.
Any tips how to be able to use the URL https://myhost.net/nextcloud
AND NOT have the warnings?
ADDTIONAL INFO:
./occ maintenance:update:htaccess
has been run when making config.php changes.