Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index.html with external links is not working #135

Open
trixprod opened this issue Mar 29, 2024 · 3 comments
Open

Index.html with external links is not working #135

trixprod opened this issue Mar 29, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@trixprod
Copy link

trixprod commented Mar 29, 2024

Hello, i'm not sure if it's a bug or a new request so tell me.

In httpdirfs we can :

  • Mount a directory with local links ( relative to current website )
  • Mount a single file with a http link

But i would like to mount a list of inside an index.html, it appears that's is not possible.
Httpdirfs doesn't list at all any external links.

Steps to reproduce :

mkdir server
echo '<a href="http://external-link/file.iso">file.iso</a>' > server/index.html
python3 -m http.server --directory server 12345

Result :

httpdirfs -d http://localhost:12345 directory

LinkTable_print: --------------------------------------------
LinkTable_print:  LinkTable 0x563726575170 for http://localhost:12345
LinkTable_print: --------------------------------------------
LinkTable_print: 0 H 0  http://localhost:12345
LinkTable_print: --------------------------------------------
LinkTable_print:  Invalid link count: 0
LinkTable_print: --------------------------------------------

0 link created.

@fangfufu
Copy link
Owner

fangfufu commented Apr 1, 2024

This was never intended to work. This software only checks for link within the same server.

@trixprod
Copy link
Author

trixprod commented Apr 1, 2024

Hello, ok well, i will setup a reverse proxy as a workaround.
Thanks

@fangfufu fangfufu added the enhancement New feature or request label Apr 21, 2024
@fangfufu
Copy link
Owner

Anyways, in principle there shouldn't be a problem with what you requested. I will keep this open as a feature enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants