WebFaction
Community site: login faq

I have a "Static/CGI/PHP-5.2" application, with a .htaccess file. It seems to be in use, since I have rewrite rules that are working. I tried adding a "Header add" line, but I don't see the header in the response. And, I see "Server: nginx" in the response, so now I am confused what web server is serving my pages.

How do I add a custom header in this case?

asked 26 Feb, 16:45

Ned%20Batchelder's gravatar image

Ned Batchelder
283
accept rate: 100%


There is a front-end nginx server which communicates with a shared Apache server that uses CGI or FCGI to process each request.

Custom headers are not supported by the front-end server, you could use a custom Apache server running on a open port if you wanted to bypass it.

alt text

permanent link

answered 26 Feb, 22:17

johns's gravatar image

johns ♦♦
4.7k29
accept rate: 22%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×211
×181
×8

question asked: 26 Feb, 16:45

question was seen: 108 times

last updated: 26 Feb, 22:17

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM