Proxy & HTTP 1.1 problem when getting path in RequestFactory

Notice: This thread is very old.
jtc
Member | 1
+
+1
-

When accessing Apache behind tinyproxy server, I ran into the same issue as reported here or here

Without proxy, application works fine, when behind proxy, RouterFactory relies that REQUEST_URI is in correct format, “corrupted” $_SERVER[‘REQUEST_URI’] is then get here and then it's parsed into request path here

As a consequence, router doesn't match any of rules and application terminates with “No route for HTTP request”.

Nette Framework 2.0.8 (revision b7f6732 released on 2013–01–01)

Server configuration:

Apache:
Server version: Apache/2.2.16 (Debian)
Server built: Mar 3 2013 12:09:44

PHP:
PHP 5.3.3–7+squeeze15 with Suhosin-Patch (cli) (built: Mar 4 2013 13:11:17)
Copyright © 1997–2009 The PHP Group
Zend Engine v2.3.0, Copyright © 1998–2010 Zend Technologies

Tinyproxy 1.9.0

Last edited by jtc (2013-04-26 17:15)

Majkl578
Moderator | 1364
+
0
-

Interesting issue, according to rfc2616 (referenced from that drupal bug), absolute uri is valid. Could you send a pull request or at least open an issue on GitHub?