1

I am using apache 2 on Debian server.

Where I can find list of all $_SERVER variables?

For example, to change $_SERVER['SERVER_NAME'] or $_SERVER['HTTP_HOST']?

Artur Dino
  • 31
  • 3
  • Maybe https://unix.stackexchange.com/questions/155150/where-in-apache-2-do-you-set-the-servername-directive-globally would be useful – user3783243 Oct 25 '21 at 12:24
  • 1
    How about. https://www.php.net/manual/en/reserved.variables.server.php? – Nigel Ren Oct 25 '21 at 12:25
  • List of all $_SERVER vars is here [Php $_SERVER var](https://www.php.net/manual/en/reserved.variables.server.php). But all of them come from different places. Considering your question - look up [Apache 2 manual](https://httpd.apache.org/docs/2.4/mod/core.html#servername) – Eugene Anisiutkin Oct 25 '21 at 12:25
  • Does this answer your question? [Add Variable to $\_SERVER array via php.ini](https://stackoverflow.com/questions/6676274/add-variable-to-server-array-via-php-ini) – Nico Haase Feb 17 '23 at 12:53

0 Answers0