Changed host to DNS name instead of IP
This commit is contained in:
parent
c7bbd9e001
commit
b851d068a8
3 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ function runPHP(req, response, next, phpinfo){
|
|||
ALL_RAW: Object.keys(req.headers).map(function(x){return x+": "+req.headers[x];}).reduce(function(a, b){return a+b+"\n";}, ""), //All HTTP headers as sent by the client in raw form. No transformation on the header names is applied.
|
||||
SERVER_SOFTWARE: "php-webkit", //The web server's software identity.
|
||||
SERVER_NAME: phpinfo.host, //The host name or the IP address of the computer running the web server as given in the requested URL.
|
||||
SERVER_ADDR: phpinfo.host, //The IP address of the computer running the web server.
|
||||
SERVER_ADDR: req.connection.localAddress || req.socket.localAddress || req.connection.socket.localAddress || "", //The IP address of the computer running the web server.
|
||||
SERVER_PORT: (phpinfo.port == 0 ? req.connection.localPort : phpinfo.port), //The port to which the request was sent.
|
||||
GATEWAY_INTERFACE: "CGI/1.1", //The CGI Specification version supported by the web server; always set to CGI/1.1.
|
||||
SERVER_PROTOCOL: "", //The HTTP protocol version used by the current request.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue