mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #101] Hosting from a sub-directory? #76
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sehailey on GitHub (Nov 1, 2019).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/101
This does not appear to play nicely with subdirectory hosting. I set up nginx to correctly access the directory but all of the static content was 404 and did not include the subdirectory in the request (even though it was included in the url in the config file).
@thomasdeurloo commented on GitHub (Nov 6, 2019):
Having same issue. Al sources/actions/href in the templates are started with a slash, causing the references to start at the site root, making in impossible to run from subdir.
<link href="/css/bootstrap.min.css" rel="stylesheet">removing the first slash will solve this issue
<link href="css/bootstrap.min.css" rel="stylesheet">@sehailey commented on GitHub (Nov 7, 2019):
Thanks for the suggestion @thomasdeurloo . Removing all of the front slashes from the template (including /api and /js) got me some of the way there. However, trying to open the file after uploading still results in a 404.
Note that the info it gives after the upload is conflicting:
the URL is clickable and is the correct URL (but leads to a 404), whereas the r1l50s.jpg is also clickable, but leads to https://websiteURL/r1l50s.jpg which is the incorrect URL (and also leads to a 404).
I wish I could be more helpful by e.g. making a pull request, but php is not my forte.
@thomasdeurloo commented on GitHub (Nov 13, 2019):
I think there must be one slash left ;) in pictshare.js:
href='/"+o.hash+"'@geek-at commented on GitHub (Jan 5, 2020):
Sorry we dropped support for sub directory hosting with the rewrite. Might implement later but for now it's not supported