Responsabilidade

  • 3 Posts
  • 207 Comments
Joined 1 year ago
cake
Cake day: June 24th, 2023

help-circle

  • Why are you using that?

        location ~ /\.ht {
            deny all;
        }
    

    You’re denying the access to your root, which is the public/ folder and has the file .htaccess that has

    <IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews -Indexes
        </IfModule>
    
        RewriteEngine On
    
        # Handle Authorization Header
        RewriteCond %{HTTP:Authorization} .
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        # Redirect Trailing Slashes If Not A Folder...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} (.+)/$
        RewriteRule ^ %1 [L,R=301]
    
        # Send Requests To Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
    </IfModule>
    

    This file handles the income requests and send to the front controller.






  • Are the detectors part for real or were you just kidding? 😲

    You were probably trying to format it nice, but I’ve only read this phrasing from AI.

    Yes, I was, because I like to put my text well formated… I feel pain when I have to read bad formated texts, so I try to be as clean as possible

    But thanks for the answer, the home folder would probably be best. I don’t want to think about it after setting it up. All my downloads and docs are there. I also feel like the whole filesystem would take forever for me to unlock/boot.

    For home folder I think there is a better alternative, like systemd-homed or something like that




  • Encrypting and decrypting are complex operations that requires a lot from the hardware. The resources needed to encrypt and decrypt is proportionally correlated with the amount of files you’re encrypting and decrypting.

    That said, there are some alternatives

    1. Encrypt the whole filesystem
    2. Encrypt only your home folder
    3. Encrypt only the files you wanna

    There is an app, Vaults, that allows you to create vaults to easily encrypt and decrypt folders. Take a look on this app


  • It depends on your goals with linux.

    If your goals are on devops, you may find a good idea learn about docker, ansible and other tools to make your life easier. If you’re a home user, maybe it’s a good idea try flatpaks, for example. And there is much more, but you need to define your goals.

    “If you don’t know where you want to go, then it doesn’t matter which path you take.”
    ― Lewis Carroll, Alice in Wonderland