![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/data/User/History/-3a401587/ |
<?php
// GoCodeMe.com - Redirect to Node.js server
// This file redirects domain requests to the Node.js server running on port 3000
$server_url = "http://localhost:3000" . $_SERVER['REQUEST_URI'];
// Get the response from the Node.js server
$context = stream_context_create([
'http' => [
'method' => $_SERVER['REQUEST_METHOD'],
'header' => [
'Content-Type: ' . $_SERVER['CONTENT_TYPE'],
'User-Agent: ' . $_SERVER['HTTP_USER_AGENT'],
'Accept: ' . $_SERVER['HTTP_ACCEPT'],
'Accept-Language: ' . $_SERVER['HTTP_ACCEPT_LANGUAGE'],
'Accept-Encoding: ' . $_SERVER['HTTP_ACCEPT_ENCODING'],
'Connection: keep-alive',
'Cache-Control: no-cache'
],
'content' => file_get_contents('php://input')
]
]);
$response = file_get_contents($server_url, false, $context);
// Forward the response headers
$headers = $http_response_header;
foreach ($headers as $header) {
if (strpos($header, 'Content-Type:') !== false ||
strpos($header, 'Content-Length:') !== false ||
strpos($header, 'Cache-Control:') !== false ||
strpos($header, 'ETag:') !== false ||
strpos($header, 'Last-Modified:') !== false) {
header($header);
}
}
// Output the response
echo $response;
?>