PHP webdeveloper and frontend developer

How to set an environment variable in Apache that is passed to CGI scripts

Category : Apache ยท by Apr 3rd, 2012

Apache has some default set environmental variables that you can use, but when these don’t suffice we can set our own environment variables within our virtual host configuration. Some default environmental variables that you can use are:

SERVER_PORT, SERVER_PROTOCOL, SERVER_ADMIN, DOCUMENT_ROOT, HTTP_ACCEPT and so on. Now, let’s set our own variable within our virtual host configuration:



Leave a Reply

Your email address will not be published. Required fields are marked *