-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
serverBasePath #27
Comments
This looks like an NGINX configuration problem, as the value for Feel free to report back with the correct settings, as I'm unfamiliar with NGINX. A quick Google Search points me towards http://stackoverflow.com/a/16171164/2076595, perhaps that could be of help? Regards, |
Not too sure it is an NGINX config problem, I think its very much your presumption of using the file path. But anyway, at the very least you should be providing a setter to enable people to override your presumptions. |
Hi @udf2457, I see that you have closed this issue, leading me to assume you got it fixed. Could you share the solution, in order to help people who have the same issue in the future? Regards, |
Hmmm...
I'm not too keen on your prescribed base path. If I don't set one (and your class doesn't seem to provide a "setter" for $this->serverBasePath !!), I don't think you should be making assumptions ?
Case in point is that on NGINX, your class ends up setting moving goalposts.
A PHP script with "implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) . '/';" will print /demo/hello/ for a URL suffix /demo/hello/x and /demo/ for URL suffix /demo/.
This is when NGINX is configured in-line with their recommended methods (http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files)
Changing
fastcgi_param SCRIPT_NAME /mystuff.php;
to
fastcgi_param SCRIPT_NAME /me/;
Has no effect.
The text was updated successfully, but these errors were encountered: