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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Problem with SetEnvIfNoCas
Author
Apalo



Joined: 03 Feb 2011
Posts: 7

PostPosted: Thu 06 Oct '11 16:14    Post subject: Problem with SetEnvIfNoCas Reply with quote

Hallo,
I would like to extract "example" from
http://example.com
www.example.com
www.example.com/aaaaa....
and put it in an environment variable MyPage.

I tried it among other with
SetEnvIfNoCase HTTP_HOST "\.(.+)\.com" MyPage $1

But MyPage is always empty.
What's the reason, my fault?
Back to top
James Blond
Moderator


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

PostPosted: Tue 25 Oct '11 11:24    Post subject: Reply with quote

I guess you missed the = (equal)
See the docs

http://httpd.apache.org/docs/current/mod/mod_setenvif.html#setenvifnocase
Back to top


Reply to topic   Topic: Problem with SetEnvIfNoCas View previous topic :: View next topic
Post new topic   Forum Index -> Apache