Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Fresh install with .htaccess and htaccess?!

    Nextcloud
    2
    2
    87
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • imc67
      imc67 translator last edited by

      I just did a fresh install of NextCloud and discovered that there are in app/data a .htaccess file and a htaccess file.

      Both are filled with config but totally different and as far as I know the htaccess version (without .) shouldn't work.

      Why is this difference?

      Schermafbeelding 2021-03-31 om 22.22.14.png

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        On Nextcloud, the data directory is /app/data. In hindsight, this was a mistake and it should ideally be /app/data/datadirectory or something. We tried to fix this long ago, but it was complicated since nextcloud complains if you change the data directory, so we left it as-is.

        Because of the above quirk, there are two htaccess files. One for the data directory itself (.htaccess) and one for the code directory (htaccess).

        When we eventually move the data directory to be a subdirectory, the .htaccess will move with it.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Powered by NodeBB