Wyłączyłem serwer dlatego nie działała strona, obecnie jest włączony,
dodałem wyświetlanie $_SERVER do pliku php, poniżej obecny log
/home/ubuntu/workspace/hello-world.php:15:
array(4) {
[0] =>
string(19) "cors access enabled"
[1] =>
array(3) {
[0] =>
string(35) "X-Powered-By: PHP/5.5.9-1ubuntu4.21"
[1] =>
string(97) "Set-Cookie: XDEBUG_SESSION=cloud9ide; expires=Sat, 29-Apr-2017 18:25:39 GMT; Max-Age=3600; path=/"
[2] =>
string(30) "Access-Control-Allow-Origin: *"
}
[2] =>
string(29) "Sat, 29 Apr 17 17:25:41 +0000"
[3] =>
array(38) {
'HTTP_HOST' =>
string(21) "php-marek2.c9users.io"
'HTTP_USER_AGENT' =>
string(65) "Mozilla/5.0 (Windows NT 6.1; rv:55.0) Gecko/20100101 Firefox/55.0"
'HTTP_ACCEPT' =>
string(3) "*/*"
'HTTP_ACCEPT_LANGUAGE' =>
string(23) "en-US,en;q=0.7,pl;q=0.3"
'HTTP_ACCEPT_ENCODING' =>
string(17) "gzip, deflate, br"
'HTTP_REFERER' =>
string(25) "https://resttesttest.com/"
'CONTENT_TYPE' =>
string(33) "application/x-www-form-urlencoded"
'HTTP_ORIGIN' =>
string(24) "https://resttesttest.com"
'HTTP_DNT' =>
string(1) "1"
'HTTP_X_FORWARDED_PROTO' =>
string(5) "https"
'HTTP_X_FORWARDED_PORT' =>
string(3) "443"
'HTTP_X_REGION' =>
string(2) "eu"
'HTTP_X_FORWARDED_FOR' =>
string(13) "xx.xx.xx.xxx"
'HTTP_CONNECTION' =>
string(10) "keep-alive"
'PATH' =>
string(375) "/home/ubuntu/.nvm/versions/node/v4.7.3/bin:/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/mnt/shared/bin:/home/ubuntu/workspace/node_modules/.bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/shared/sbin:/opt/gitl:/opt/go/bin:/mnt/shared/c9/app.nw/bin:/usr/local/rvm/bin"
'LD_LIBRARY_PATH' =>
string(15) "~/.c9/local/lib"
'SERVER_SIGNATURE' =>
string(82) "<address>Apache/2.4.7 (Ubuntu) Server at php-marek2.c9users.io Port 443</address>
"
'SERVER_SOFTWARE' =>
string(21) "Apache/2.4.7 (Ubuntu)"
'SERVER_NAME' =>
string(21) "php-marek2.c9users.io"
'SERVER_ADDR' =>
string(11) "172.17.0.69"
'SERVER_PORT' =>
string(3) "443"
'REMOTE_ADDR' =>
string(12) "10.240.0.224"
'DOCUMENT_ROOT' =>
string(22) "/home/ubuntu/workspace"
'REQUEST_SCHEME' =>
string(5) "https"
'CONTEXT_PREFIX' =>
string(0) ""
'CONTEXT_DOCUMENT_ROOT' =>
string(22) "/home/ubuntu/workspace"
'SERVER_ADMIN' =>
string(18) "[no address given]"
'SCRIPT_FILENAME' =>
string(38) "/home/ubuntu/workspace/hello-world.php"
'REMOTE_PORT' =>
string(5) "45764"
'GATEWAY_INTERFACE' =>
string(7) "CGI/1.1"
'SERVER_PROTOCOL' =>
string(8) "HTTP/1.1"
'REQUEST_METHOD' =>
string(3) "GET"
'QUERY_STRING' =>
string(4) "cors"
'REQUEST_URI' =>
string(21) "/hello-world.php?cors"
'SCRIPT_NAME' =>
string(16) "/hello-world.php"
'PHP_SELF' =>
string(16) "/hello-world.php"
'REQUEST_TIME_FLOAT' =>
double(1493486739.207)
'REQUEST_TIME' =>
int(1493486739)
}
}