-
Notifications
You must be signed in to change notification settings - Fork 19
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
Assets are loaded using the full system path, rather than relative web path #287
Comments
First hunch is that it's something wrong with the logic in
The relevant parts of the Apache vhost-config;
|
Damn, I'm sorry, I have neglected this project in last month of so. I haven't ever tried on Apache and I guess the vhost config as reccomended by Slim Framework may have changed. |
Ok I believe I have figured this out. The problem is (as it has been since it begun) the attempt to figure out the subfolder. I was currently relying on
Which means, if the document root for phppga vhost was however this is too brittle. Some webservers won't populate the DOCUMENT_ROOT, and in other scenarios any kind of symlinking rules (think capistrano deploys) will break the above. This behavior was introduced by #28 and all this time I tried to infer the subdirectory. I won't anymore. From now on if you want to run in a subfolder that must be configured explicitly: |
Hi,
Just upgraded from 6.0.0-beta-something to latest RC. Also tested with fresh install, both produced the result below.
subfolder
variable is set to the full path of the files on the underlying system, and not relative to the web-root, causing assets to have wrong URL;phpPgAdmin6 is served on domain
some.domain.foo
directly in it's root, so all of the above should start with./
or/
, rather than/srv/vhosts/some.domain.foo/
.The text was updated successfully, but these errors were encountered: