logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_headers and some questions
Author
X-Rout



Joined: 22 Apr 2016
Posts: 3

PostPosted: Fri 22 Apr '16 12:30    Post subject: mod_headers and some questions Reply with quote

Hello guys,

Be patient with me I am new in Apache.

"RequestHeader set X-REMOTE-USER %{REMOTE_USER}s" can you tell me why it's not working in mod_headers ?

The goal is to add username(In other product using Apache) through HTTP header.
Back to top
X-Rout



Joined: 22 Apr 2016
Posts: 3

PostPosted: Fri 22 Apr '16 13:04    Post subject: Reply with quote



As you can see X-REMOTE-USER is (null).

Any ideas ?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 24 Apr '16 18:12    Post subject: Reply with quote

Dependig on the context REMOTE_USER is not always set.

See http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritecond scroll down to point 5 or search for REMOTE_USER

But is a bit risky to trust REMOTE_USER. Not every browser does set this variable correctly with every request.
Back to top
X-Rout



Joined: 22 Apr 2016
Posts: 3

PostPosted: Mon 25 Apr '16 10:54    Post subject: Reply with quote

Thanks! Smile
This is helpful for me.
Back to top


Reply to topic   Topic: mod_headers and some questions View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules