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

Base href? #89

Open
sciurius opened this issue Aug 15, 2024 · 3 comments
Open

Base href? #89

sciurius opened this issue Aug 15, 2024 · 3 comments

Comments

@sciurius
Copy link

Nice tool! Can pyrobox serve a file tree as if it were located on a real server?

For example, assuming there is an option --serve-path, then

pyrobox --directory public --serve-path /someprefix 

will serve /someprefix/anyfile from public/anyfile

@RaSan147
Copy link
Owner

Interesting idea. I'll look into it. Thanks.

Whats the Expected outputs if client browser attempt to go to root directory (or any path other than basepath)

@sciurius
Copy link
Author

AFAIK, every URL must start with /someprefix otherwise it will be rejected with 403 Forbidden.
One exception is /, which is equivalent to /someprefix/.

@RaSan147
Copy link
Owner

RaSan147 commented Aug 15, 2024 via email

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

No branches or pull requests

2 participants