-
Notifications
You must be signed in to change notification settings - Fork 7
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
Working in a sub directory #16
Comments
Thanks, good question! Are you using Apache or nginx? If I remember correctly, the problems had to do with the routing rules in the included If a request comes in, the web server first checks the So some of that did not work in subdirectories with Apache. Perhaps you’d want to test this and see where it goes wrong. |
I'm using Apache. Thanks to your elaborate answer I came up with the following solution. To allow the normal use of some specific files I added a rule similar to your rule to prevent rewriting files in the
A request for |
Thanks, that looks good, but is obviously not what we want here as a general solution, because it is not as convenient, requiring you to register every single file you put into But as a workaround in your case, it should be fine. And you shouldn’t experience any other problems due to the subdirectory – except for those routing issues with the |
Apparently my explanation wasn't clear. I'm sorry for that. The extra rule does not apply to the This is the complete section in the
So, if you have a main domain Including additional directly accessible files by adding a rule for each like this is acceptable in my opinion since it involves no more than a couple of files. Others I can think of besides the |
Thanks for the clarification, though that doesn’t make much of a difference. Instead of storing your static assets in As a general-purpose solution for this framework, this doesn’t work because it isn’t as convenient as just putting files into
I understood that, and in this case, it’s perfectly fine to choose the solution you have decided for. In many web applications, however, the developers add dozens or even hundreds of static assets into |
Okay. However I just don't understand why you want to advertise a limitation which can so easily be lifted. |
Yes, not really sure about that, but we had other priorities than to make this work. Anyway, happy that this issue is now here and discusses the problem and a solution. |
There’s now a preliminary workaround that addresses this issue here and the following limitation mentioned in the README:
The workaround does not require the developer to list individual files in In
with
There’s also a related issue in the Apache issue tracker now: |
In the first step of your installation instruction you state:
"Note: This framework does currently work in the web root (at / under your domain) only."
However, my experience so far (I'm not very far yet) is that the framework works well when installed in a sub directory like `https://example.com/sf-pfv/'.
Does this limitation still apply or am I heading for disaster at some point later on?
The text was updated successfully, but these errors were encountered: