tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

nginx (php-fpm?) pathInfo fix in THttpRequest::init() #461

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using Prado with SEO friendly URLs and nginx.
To achieve this, i had to configure nginx properly and create a patch for  
THttpRequest::init().

The current patch against r3288 can be found at:
http://www.pradoframework.com/forum/index.php?topic=16662.msg64428#msg64428

I tested this patch with nginx and apache running on the same host on different
IPs and things seem to work.

I think that this change might be incorporated into the if check.
However, I'm not understanding this code enough to do the correct thing.

Cheers,
Raoul

Original issue reported on code.google.com by ra...@bhatia.at on 30 Apr 2013 at 12:56

GoogleCodeExporter commented 9 years ago
ok, i forgot that i added UrlPrefix to a custom TUrlMapper, as described in the 
forum's post.

    <module id="friendly-url" class="System.Web.TUrlMapping" EnableCustomUrl="true" UrlPrefix="/frontend">

I updated the patch provided there.

Maybe we can find a way to automagically convert nginx's $fastcgi_path_info to 
apache's PathInfo?

Original comment by ra...@bhatia.at on 30 Apr 2013 at 1:23

GoogleCodeExporter commented 9 years ago
Issue 462 has been merged into this issue.

Original comment by ctrlal...@gmail.com on 4 May 2013 at 2:04

GoogleCodeExporter commented 9 years ago
The issue was solved without the need of patching prado.

Original comment by ctrlal...@gmail.com on 11 May 2013 at 9:25