server/core/Command
Lukas Reschke 52add798d4 Do not automatically try to enable index.php-less URLs (#24539)
The current logic for mod_rewrite relies on the fact that people have properly configured ownCloud, basically it reads from the `overwrite.cli.ur
l` entry and then derives the `RewriteBase` from it.

This usually works. However, since the ownCloud packages seem to install themselves at `/owncloud` (because subfolders are cool or so…) _a lot_ of people have just created a new Virtual Host for it or have simply symlinked the path etc.

This means that `overwrite.cli.url` is wrong, which fails hard if it is used as RewriteBase since Apache does not know where it should serve files from. In the end the ownCloud instance will not be accessible anymore and users will be frustrated. Also some shared hosters like 1&1 (because using shared hosters is so awesome… ;-)) have somewhat dubious Apache configurations or use versions of mod_rewrite from the mediveal age. (because updating is money or so…)

Anyhow. This makes this explicitly an opt-in configuration flag. If `htaccess.RewriteBase` is set then it will configure index.php-less URLs, if
admins set that after installation and don't want to wait until the next ownCloud version they can run `occ maintenance:update:htaccess`.

For ownCloud 9.0 we also have to add a repair step to make sure that instances that already have a RewriteBase configured continue to use it by copying it into the config file. That way all existing URLs stay valid. That one is not in this PR since this is unneccessary in master.

Effectively this reduces another risk of breakage when updating from ownCloud 8 to ownCloud 9.

Fixes https://github.com/owncloud/core/issues/24525, https://github.com/owncloud/core/issues/24426 and probably some more.
2016-05-12 09:43:26 +02:00
..
App Deprecate appinfo/update.php - RepairSteps within info.xml are to be used 2016-04-22 17:22:40 +02:00
Background Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Config Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Db Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Encryption Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Integrity Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
L10n Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Log Move OC_Log_xx to \OC\Log namespace 2016-05-03 08:57:26 +02:00
Maintenance Do not automatically try to enable index.php-less URLs (#24539) 2016-05-12 09:43:26 +02:00
Security Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
User Add occ commands to enable and disable a user + a disabled user can no longer login - fixes #23838 2016-05-02 09:31:22 +02:00
Base.php Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Check.php Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Status.php Rename files to be PSR-4 compliant 2016-04-06 11:00:52 +02:00
Upgrade.php Adding progress to occ upgrade 2016-04-28 13:52:01 +02:00