Adding machine name in a header

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 5
Joined: 26 Nov 2012, 16:22

Adding machine name in a header

26 Nov 2012, 16:25

Hello,

Is there an easy (and efficient) way to add the current machine's windows name to a header using mod_header?

For example, for content served from web server 1, I'd want something like:

x-served-by: server1

and for those served from web server 2, I'd want:

x-served-by: server2

I realize I could just use a static value for the header, but I'd like to keep a consistent .htaccess file across machines to simplify configuration.

Thanks in advance!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Adding machine name in a header

27 Nov 2012, 01:51

hello,

Here is the list of the ISAPI_Rewrite and Ape supported vatiables. I guess you may use %{SERVER_Name}

Regards
Andrew

User avatar
Posts: 24
Joined: 27 Nov 2012, 21:57

Re: Adding machine name in a header

03 Dec 2012, 22:39

Thanks for the list.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 26 guests