system information
Nextcloud version (eg, 26.0.1): | 27.0.0.8 |
Operating system and version (eg, Ubuntu 22.04): | Debian 11 (5.10.0-21-amd64) |
Apache or nginx version (eg, Apache 2.4.25): | 2.4.56 |
PHP version (eg, 8.1): | 8.2 |
Database (sqlite or MariaDB or Postgres) | maria DB |
Docker (compose) | no |
Snap | no |
Is this the first time you’ve seen this error? | yes |
config.php
$CONFIG = array (
'instanceid' => 'REDACTED',
'passwordsalt' => 'REDACTED',
'secret' => 'REDACTED',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'REDACTED',
2 => '192.168.178.144',
3 => 'REDACTED',
),
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '172.17.0.0/24',
2 => '0.0.0.0',
3 => '192.168.178.144',
4 => '192.168.178.0/24',
),
'forwarded_for_headers' =>
array (
0 => 'HTTP_X_FORWARDED',
1 => 'HTTP_FORWARDED_FOR',
),
'datadirectory' => '/media/array/owncloud',
'dbtype' => 'mysql',
'version' => '27.0.0.8',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'REDACTED',
'dbpassword' => 'REDACTED',
'logtimezone' => 'UTC',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'mail_domain' => 'REDACTED',
'mail_from_address' => 'owncloud',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'REDACTED',
'mail_smtpport' => '465',
'mail_smtpname' => 'REDACTED',
'mail_smtppassword' => 'REDACTED',
'loglevel' => 2,
'debug' => false,
'theme' => '',
'maintenance' => false,
'has_rebuilt_cache' => true,
'allow_user_to_change_mail_address' => '',
'remember_login_cookie_lifetime' => 1296000,
'session_lifetime' => 86400,
'mysql.utf8mb4' => true,
'default_phone_region' => 'DE',
'overwrite.cli.url' => 'REDACTED',
'htaccess.RewriteBase' => '/',
'app_install_overwrite' =>
array (
0 => 'news',
1 => 'camerarawpreviews',
),
);
The issue you are facing:
I did everything in the guide to activate pretty URL:
'htaccess.RewriteBase' => '/',
'overwrite.cli.url' => 'REDACTED',
I ran the command, too. I now have these lines in my .htaccess
file:
RewriteRule . index.php [PT,E=PATH_INFO:$1]
RewriteBase /
So everything looks good to me. However if I manually remove the index.php
part from the URL, I get something like this (e.g.: the news app):
I don’t know if this is related to my nextcloud server beeing behind a reverse proxy, but I set the config.php parameters for it, so I don’t know. However nextcloud always uses index.php
as part of links… So some setting has to be wrong right?