Skip to content

Consider putting public-facing files in a public folder instead of mixing with application files #935

@lautriva

Description

@lautriva

LinkStack version

4.8.4

Description

Having all assets + index.php in a public folder then the webserver pointing to this public folder would remove the need to add custom rules to protect application + sensitive files in .htaccess (those are not read by nginx and caddy)

This is the recommended Laravel structure

Details about your system

Linkstack installed on server using Caddy + PHP (without using docker)

How to reproduce

Install Linkstack on a caddy server

Possible Solution

@block_files expression path_regexp('\\..*') || path_regexp('.*\\.sqlite')
respond @block_files 403

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions