Title: Consider putting public-facing files in a public folder instead of mixing with application files · Issue #935 · LinkStackOrg/LinkStack · GitHub
Open Graph Title: Consider putting public-facing files in a public folder instead of mixing with application files · Issue #935 · LinkStackOrg/LinkStack
X Title: Consider putting public-facing files in a public folder instead of mixing with application files · Issue #935 · LinkStackOrg/LinkStack
Description: 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...
Open Graph Description: 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 applicati...
X Description: 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 applicati...
Opengraph URL: https://github.com/LinkStackOrg/LinkStack/issues/935
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider putting public-facing files in a public folder instead of mixing with application files","articleBody":"### LinkStack version\n\n4.8.4\n\n### Description\n\nHaving 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)\n\nThis is the recommended [Laravel](https://laravel.com/docs/12.x/structure#the-public-directory) structure\n\n### Details about your system\n\nLinkstack installed on server using Caddy + PHP (without using docker)\n\n### How to reproduce\n\nInstall Linkstack on a caddy server\n\n### Possible Solution\n\n```\n@block_files expression path_regexp('\\\\..*') || path_regexp('.*\\\\.sqlite')\nrespond @block_files 403\n```\n\n### Additional Context\n\n_No response_","author":{"url":"https://github.com/lautriva","@type":"Person","name":"lautriva"},"datePublished":"2025-09-02T06:49:31Z","url":"https://github.com/LinkStackOrg/LinkStack/issues/935"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f254d94c-edd6-2fa2-06b7-ae97b26d7c2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B55C:152A68:199F56:20E952:6AEBD30A |
| html-safe-nonce | cf334bcee23579c1699ed00a5e66cb47ce5a6d188f539349c3573a27ec7d75d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTVDOjE1MkE2ODoxOTlGNTY6MjBFOTUyOjZBRUJEMzBBIiwidmlzaXRvcl9pZCI6IjQ1MDM3ODE1ODk3NDg3OTgyMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 098c600ca386ba637da22be941d61b5cc14ae88eba8bcd413dac3027ef02339b |
| hovercard-subject-tag | issue:3374664132 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/LinkStackOrg/LinkStack/935/issue_layout |
| twitter:image | https://opengraph.githubassets.com/48e5d0dc69c8684e0fb6bc4861463f1ad0b00ded2e17e736734ee79cde4289bf/LinkStackOrg/LinkStack/issues/935 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48e5d0dc69c8684e0fb6bc4861463f1ad0b00ded2e17e736734ee79cde4289bf/LinkStackOrg/LinkStack/issues/935 |
| og:image:alt | 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 applicati... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lautriva |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97b204e1babd5581d0c4d4f3dc7d4a484f3d9fef013d4bc1be57692ba0aeb6f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/LinkStackOrg/LinkStack git https://github.com/LinkStackOrg/LinkStack.git |
| octolytics-dimension-user_id | 113472924 |
| octolytics-dimension-user_login | LinkStackOrg |
| octolytics-dimension-repository_id | 459095253 |
| octolytics-dimension-repository_nwo | LinkStackOrg/LinkStack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 459095253 |
| octolytics-dimension-repository_network_root_nwo | LinkStackOrg/LinkStack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ee820e8271e2dd5c53dba22e928915edb9795b69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width