REQUEST_URI unexpectedly contains FQDN

后端 未结 1 1935
傲寒
傲寒 2021-01-05 09:28

On my main web server, the $_SERVER variable REQUEST_URI always contains something like \"/filename.php\" however on my development server (PHP Version 5.3.5-1ubuntu7.3, Apa

相关标签:
1条回答
  • 2021-01-05 09:30

    Using proxy & HTTP 1.1 leads to full URL in REQUEST_URI variable in Apache. Web applications have to test REQUEST_URI before trying to concatinate it with host (this bug exists in Wordpress CMS for example).

    0 讨论(0)
提交回复
热议问题