Giter Club home page Giter Club logo

Comments (6)

oderwat avatar oderwat commented on September 23, 2024

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.

oderwat avatar oderwat commented on September 23, 2024

I just adjusted it. Can you please try if that works for you?

from hubic2swiftgate.

Christian-Krupa avatar Christian-Krupa commented on September 23, 2024

nope, does not work. i am going to install an apache beside my nginx, fix it and do a merge request.

from hubic2swiftgate.

oderwat avatar oderwat commented on September 23, 2024

What is the problem with the current version on nginx?

from hubic2swiftgate.

Christian-Krupa avatar Christian-Krupa commented on September 23, 2024

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.

oderwat avatar oderwat commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.