Skip to content
Snippets Groups Projects
  1. Jun 09, 2016
  2. Jun 03, 2016
  3. May 23, 2016
  4. May 12, 2016
    • Lukas Reschke's avatar
      Do not automatically try to enable index.php-less URLs (#24539) · 52add798
      Lukas Reschke authored
      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.
      52add798
  5. Mar 17, 2016
  6. Mar 15, 2016
  7. Mar 10, 2016
    • Stephan Köninger's avatar
      Allow jpg files to be statically served · 73a7c45d
      Stephan Köninger authored
      When using an background image in themes of type JPG, the current setting of owncloud's htaccess file does not allow to deliver these kinds of images as static content. Adding the file extensions as done in this commit, it works flawlessly.
      73a7c45d
  8. Mar 09, 2016
  9. Feb 25, 2016
  10. Jan 28, 2016
  11. Jan 12, 2016
  12. Jan 08, 2016
  13. Jan 06, 2016
  14. Dec 08, 2015
    • mbi's avatar
      Do not rewrite letsencrypt .well-known URI · 1aff941b
      mbi authored
      1aff941b
    • Lukas Reschke's avatar
      Remove version check out of .htaccess · 235094ab
      Lukas Reschke authored
      This can now be achieved using the new code signing.
      235094ab
    • Lukas Reschke's avatar
      Add DirectorySlash to dynamic .htaccess write · 3bce1b20
      Lukas Reschke authored
      When `DirectorySlash off` is set then Apache will not lookup folders anymore. This is required for example when we use the rewrite directives on an existing path such as  `/core/search`. By default Apache would load `/core/search/` instead `/core/search` so the redirect would fail here.
      
      This leads however to the problem that URLs such as `localhost/owncloud` would not load anymore while `localhost/owncloud/` would. This has caused problems such as https://github.com/owncloud/core/pull/21015
      
      With this change we add the `DirectorySlash off` directive only when the `.htaccess` is writable to the dynamic part of it. This would also make `localhost/owncloud` work again as it would trigger the 404 directive which triggers the redirect in base.php.
      3bce1b20
  15. Dec 07, 2015
  16. Dec 05, 2015
  17. Dec 02, 2015
  18. Dec 01, 2015
  19. Nov 18, 2015
  20. Nov 17, 2015
  21. Oct 15, 2015
  22. Oct 14, 2015
  23. Sep 29, 2015
  24. Aug 16, 2015
  25. Jul 01, 2015
  26. Mar 26, 2015
  27. Mar 19, 2015
Loading