| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 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.
 |  | 
 | 
| | 
| | 
|  Topic: Apache 2.4 | Accessing request header value |  |  
| Author |  |  
| RAJIV_KVL 
 
 
 Joined: 24 Apr 2018
 Posts: 4
 
 
 | 
|  Posted: Mon 30 Apr '18 11:32    Post subject: Apache 2.4 | Accessing request header value |   |  
| 
 |  
| Hi , 
 I want to grant access all to this below directory only if Request's Header contains this value. (GM_HTTPS_HEADER=ALLOWTOGMFTP)
 
 If request header doesn't have this have in header, then user should not be able to access directory.
 
 Can you please tell me how can i do that.
 
 Alias /xreports  "/usr/local/apache/htdocs/clients"
 <DirectoryMatch  "^/usr/local/apache/htdocs/clients/(?<CLIENTNAME>[^/]+)">
 DirectoryIndex disabled
 AllowOverride None
 Options Indexes FollowSymLinks
 AuthType Basic
 Require all granted
 IndexOptions FancyIndexing NameWidth=*
 </DirectoryMatch>
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 |  |  
| Back to top |  |  
| RAJIV_KVL 
 
 
 Joined: 24 Apr 2018
 Posts: 4
 
 
 | 
|  Posted: Mon 30 Apr '18 13:36    Post subject: |   |  
| 
 |  
| mine is HTTPS.. 
 It is not working for HTTPS
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |