{"action":"opened","issue":{"url":"https://api.github.com/repos/oderwat/hubic2swiftgate/issues/18","labels_url":"https://api.github.com/repos/oderwat/hubic2swiftgate/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/oderwat/hubic2swiftgate/issues/18/comments","events_url":"https://api.github.com/repos/oderwat/hubic2swiftgate/issues/18/events","html_url":"https://github.com/oderwat/hubic2swiftgate/issues/18","id":66142336,"number":18,"title":"SCRIPT_URL does not not exists in nginx / fpm config","user":{"login":"Christian-Krupa","id":1899546,"avatar_url":"https://avatars.githubusercontent.com/u/1899546?v=3","gravatar_id":"","url":"https://api.github.com/users/Christian-Krupa","html_url":"https://github.com/Christian-Krupa","followers_url":"https://api.github.com/users/Christian-Krupa/followers","following_url":"https://api.github.com/users/Christian-Krupa/following{/other_user}","gists_url":"https://api.github.com/users/Christian-Krupa/gists{/gist_id}","starred_url":"https://api.github.com/users/Christian-Krupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Christian-Krupa/subscriptions","organizations_url":"https://api.github.com/users/Christian-Krupa/orgs","repos_url":"https://api.github.com/users/Christian-Krupa/repos","events_url":"https://api.github.com/users/Christian-Krupa/events{/privacy}","received_events_url":"https://api.github.com/users/Christian-Krupa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-03T12:59:05Z","updated_at":"2015-04-03T12:59:05Z","closed_at":null,"body":"after updating to commit 215efc99a06fb61e4210ed95ede03d0ef6680b82 i receive this error:\r\n```\r\nNotice: Undefined index: SCRIPT_URL in /hubic2swiftgate/www/simple.php on line 26\r\n```\r\napache seems to be the only webserver wich supports SCRIPT_URL. php frameworks like symfony2 do use other parameters  (https://github.com/symfony/HttpFoundation/blob/master/Tests/RequestTest.php#L453) to detect the correct \"prefix\". \r\n\r\nhere is my nginx config (with rewrites):\r\n```\r\nserver {\r\n    listen 192.168.0.60:443 ssl;\r\n    listen 192.168.0.60:80;\r\n    location / {\r\n        index simple.php;\r\n        rewrite ^/(.*)$ /simple.php?/$1 last;\r\n    }\r\n    location ~ /simple.php($|/) {\r\n        include /opt/local/etc/nginx/fastcgi_params;\r\n        fastcgi_pass 127.0.0.1:9000;\r\n    }\r\n}\r\n```\r\n\r\nan call to the host https://hub_ic.local with active nginx rewrites return the following `var_dump($_SERVER)` \r\n```\r\narray(35) {\r\n  [\"HOME\"]=>\r\n  string(21) \"/Users/christiankrupa\"\r\n  [\"QUERY_STRING\"]=>\r\n  string(1) \"/\"\r\n  [\"SCRIPT_NAME\"]=>\r\n  string(11) \"/simple.php\"\r\n  [\"REQUEST_URI\"]=>\r\n  string(1) \"/\"\r\n  [\"DOCUMENT_URI\"]=>\r\n  string(11) \"/simple.php\"\r\n  [\"DOCUMENT_ROOT\"]=>\r\n  string(47) \"/Users/christiankrupa/Sites/hubic2swiftgate/www\"\r\n  [\"SERVER_SOFTWARE\"]=>\r\n  string(11) \"nginx/1.7.7\"\r\n  [\"SERVER_NAME\"]=>\r\n  string(12) \"hub_ic.local\"\r\n  [\"SCRIPT_FILENAME\"]=>\r\n  string(58) \"/Users/christiankrupa/Sites/hubic2swiftgate/www/simple.php\"\r\n  [\"PATH_INFO\"]=>\r\n  string(11) \"/simple.php\"\r\n}\r\n```\r\nthe same call without rewrites (http://localhost/hubic2swiftgate/www/simple.php)\r\n```\r\narray(33) {\r\n  [\"HOME\"]=>\r\n  string(21) \"/Users/christiankrupa\"\r\n  [\"QUERY_STRING\"]=>\r\n  string(0) \"\"\r\n  [\"SCRIPT_NAME\"]=>\r\n  string(31) \"/hubic2swiftgate/www/simple.php\"\r\n  [\"REQUEST_URI\"]=>\r\n  string(31) \"/hubic2swiftgate/www/simple.php\"\r\n  [\"DOCUMENT_URI\"]=>\r\n  string(31) \"/hubic2swiftgate/www/simple.php\"\r\n  [\"DOCUMENT_ROOT\"]=>\r\n  string(27) \"/Users/christiankrupa/Sites\"\r\n  [\"SERVER_SOFTWARE\"]=>\r\n  string(11) \"nginx/1.7.7\"\r\n  [\"SCRIPT_FILENAME\"]=>\r\n  string(58) \"/Users/christiankrupa/Sites/hubic2swiftgate/www/simple.php\"\r\n  [\"PATH_INFO\"]=>\r\n  string(31) \"/hubic2swiftgate/www/simple.php\"\r\n}\r\n```\r\n\r\nwhat is the apache response? after comparing the params i think we are able to find a valid solution which does work on different webservers.\r\n"}}