Comments (6)
Well originally I had the prefix hard-coded as empty. Which was changed by your PR. But that did not work with Apache this way.
From comparing the outputs I think that REQUEST_URI is the way to go. As this will follow rewrites and is available everywhere.
from hubic2swiftgate.
I just adjusted it. Can you please try if that works for you?
from hubic2swiftgate.
nope, does not work. i am going to install an apache beside my nginx, fix it and do a merge request.
from hubic2swiftgate.
What is the problem with the current version on nginx?
from hubic2swiftgate.
the nginx now detect /
as $_prefix
when i call an url with active rewrite (eg. https://hub_ic.local/success/). which results in a invalid $request
variable like "success/".
further more each request with parameters like the register site. is detected as a $request
to /
which is also not valid and i can not register.
so i do setup a default apache 2.4.7 on ubuntu 14.04.2 lts system and configured the vhost as you describe https://github.com/oderwat/hubic2swiftgate#setting-up-apache2-for-hubic2swiftgate.
with the current sourcecode i am able to call pages without get parameter eg. http://192.168.0.10/success/
but i am unable to register http://192.168.0.10/register/?client=hubic&password=mypasswors
. the $_prefix
is detected as /register
and the $request
is /
. so i am unable to register again even with an apache and a default php config.
a review of other systems like wordpress (wp-includes/load.php - function wp_fix_server_vars) or symfony2 (symfony/src/Symfony/Component/HttpFoundation/Request.php function prepareBaseUrl) show that the fix is not done in 3-5 lines of code.
so as a conclusion i think the swift gate should return to a fixed/hardcoded $_prefix
. this is not the best solution but a pragmatic one.
from hubic2swiftgate.
Yes. I changed it back to the old fixed version but let the order changes such that you can do it in the config file instead of needing to change the main.
from hubic2swiftgate.
Related Issues (20)
- ftp-cloudfs + hubic2swiftgate = ftp hubic HOT 1
- 403 Forbidden HOT 3
- invalid_request HOT 2
- I can't make a connection with hubiC HOT 1
- . HOT 2
- Using a recent version of Python-SwiftClient HOT 3
- Dockerfile HOT 2
- 404 not found HOT 9
- ERROR : Access Denied! Wrong Client or Password HOT 13
- Alias Apache HOT 3
- Several issues (s3ql), any help? HOT 4
- Problem registering HOT 6
- autoregister doesn't work anymore ? HOT 1
- Register issue : HubiC api server responded with return code: 0 HOT 1
- include caddy configuration info HOT 1
- Help in configuration with Nginx (and Owncloud)
- Not "secure" to be trusted for "public" users... HOT 2
- Setup HOT 1
- Does not work with CyberDuck HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubic2swiftgate.