Adding machine name in a header
3 posts
• Page 1 of 1
Adding machine name in a header
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!
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!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Adding machine name in a header
hello,
Here is the list of the ISAPI_Rewrite and Ape supported vatiables. I guess you may use %{SERVER_Name}
Regards
Andrew
Here is the list of the ISAPI_Rewrite and Ape supported vatiables. I guess you may use %{SERVER_Name}
Regards
Andrew
- tidaltides
- Posts: 24
- Joined: 27 Nov 2012, 21:57
Re: Adding machine name in a header
Thanks for the list.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 26 guests