GithubHelp home page GithubHelp logo

Comments (5)

dantti avatar dantti commented on June 8, 2024

It seems that Apache doesn't has DOCUMENT_URI (as NGINX does), it that's really the case I might need to parse REQUEST_URI instead.

from cutelyst.

buschmann23 avatar buschmann23 commented on June 8, 2024

Now that I know what is missing, I can use a rewrite rule to set the DOCUMENT_URI environment variable:

RewriteEngine On
RewriteRule ^(.+) - [E=DOCUMENT_URI:$1]

That works. But DOCUMENT_URI seems only to be exported by NGINX and is not part of RFC 3875. So we should either use the standard environment variables or place a hint somewhere in the docs. :)

from cutelyst.

buschmann23 avatar buschmann23 commented on June 8, 2024

Alternative approach using mod_setenvif instead of mod_rewrite:

SetEnvIf Request_URI "^(.+)" DOCUMENT_URI=$1

from cutelyst.

dantti avatar dantti commented on June 8, 2024

Please test if it works on Apache since I only tested on NGINX

from cutelyst.

buschmann23 avatar buschmann23 commented on June 8, 2024

👍 Now it works as expected without setting additional environment variables. :)

from cutelyst.

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.