Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.apache.configuration > #4268
| Newsgroups | alt.apache.configuration |
|---|---|
| Date | 2015-12-02 17:43 -0800 |
| Message-ID | <fdf035bc-bbf1-424c-b070-a251996fcba5@googlegroups.com> (permalink) |
| Subject | Setting header based on %{REQUEST_URI} |
| From | ijunaidsubhani@gmail.com |
Hi guys,
I am trying to Set a particular Header and its value based on a %{REQUEST_URI}.
I am trying to set a header based on the URI of a particular page.
1. I access a page using chrome.
2. Inspect element and see that my URI header is giving the value /bst/index.html
3. Now in my Apache config , I want to set a Header to Yes if my %{REQUEST_URI} is equal to /bst/index.html
This is what I am doing :
RewriteCond %{REQUEST_URI} ^\/bst\/index\.html [NC]
Header set X-Akamai Yes
The above config is not working and is setting X-Akami for all the pages I am visiting on the web page.
Any idea why ?
Back to alt.apache.configuration | Previous | Next — Next in thread | Find similar | Unroll thread
Setting header based on %{REQUEST_URI} ijunaidsubhani@gmail.com - 2015-12-02 17:43 -0800
Re: Setting header based on %{REQUEST_URI} Kees Nuyt <k.nuyt@nospam.demon.nl> - 2015-12-03 11:30 +0100
Re: Setting header based on %{REQUEST_URI} "D. Stussy" <spam@spam.org> - 2015-12-07 13:50 -0800
csiph-web