Giter Club home page Giter Club logo

Comments (11)

WaaromZoMoeilijk avatar WaaromZoMoeilijk commented on June 24, 2024

In my understanding the current way is more secure and it always was the recommended setting, I suppose they added the htaccess occ command later.... Although supporting the occ command for it to work like you pointed could be up for discussion @enoch85

from vm.

Pe46dro avatar Pe46dro commented on June 24, 2024

Maybe add the option to enable it during configuration to enable the pretty url and if the user answer yes the script will append to the .htaccess file the configuration to remove index.php
The script should also add 'htaccess.RewriteBase' => '/' to the configuration file.

from vm.

eplusk avatar eplusk commented on June 24, 2024

Hi, i tried to edit the config.php, changed the permission to 664 for .htaccess,
-rw-rw-r-- 1 root www-data 2630 Sep 1 13:57 .htaccess
run the maintenance:update:htaccess,
changed the permissions back
-rw-r--r-- 1 root www-data 2630 Sep 1 13:59 .htaccess
and now I have pretty URL also.

from vm.

Pe46dro avatar Pe46dro commented on June 24, 2024

Yes is what i have done to make it work

from vm.

enoch85 avatar enoch85 commented on June 24, 2024

We use a script to set secure permissions. The permissions are meant to be as secure as possible, and also recommended in the docs by both Nextcloud and ownCloud.

I'm on vacation for a few more weeks, but I'll let this be open for further discussion. Thanks for your efforts @Pe46dro :)

from vm.

enoch85 avatar enoch85 commented on June 24, 2024

@Pe46dro

But nothing nothing changes probably because htaccess owner is root.

Do you try to change the setting as root or with sudo?

This could be implemented in the startup-script, just need to find the time. Btw, the startup-script are run as root.

Another PR maybe @Pe46dro ? ;)

from vm.

Pe46dro avatar Pe46dro commented on June 24, 2024

I tried with sudo,
if tomorrow i have time i will try to make a PR 👍

from vm.

enoch85 avatar enoch85 commented on June 24, 2024

Thanks @Pe46dro you're awesome!

from vm.

enoch85 avatar enoch85 commented on June 24, 2024

If we change .htaccess to chown ${htuser}:${htgroup} ${ncpath}/.htaccess Then anyone will be able to see it, which is a big security risk.

There must be another solution to this issue.

from vm.

Pe46dro avatar Pe46dro commented on June 24, 2024

This prevent access to .htaccess file

<Files .htaccess>
order allow,deny
deny from all
</Files>

But if i temporary change of owner and then i run the htaccess update command should make all work fine, i have to test it and commit.

from vm.

enoch85 avatar enoch85 commented on June 24, 2024

@Pe46dro

But if i temporary change of owner and then i run the htaccess update command should make all work fine, i have to test it and commit.

Yes please. Make the change in nextcloud-startup-script.sh

Thanks!

from vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.