Welcome! Log In Create A New Profile

Advanced

Re: Rewrite and FastCGI.

Thomas Martin
October 11, 2012 03:50AM
Hi!

2012/10/10 Francis Daly <francis@daoine.org>:

> Having re-read the docs, I can see that the interpretation could be
> made clearer. Can you suggest any wording that might have helped you
> understand then, what you do now? Maybe it can become easier for the
> next person ;-)
>
> Would adding a link to
> http://nginx.org/en/docs/http/request_processing.html#simple_php_site_configuration
> have helped, do you think? It is an example rather than complete
> documentation, and it leaves out the "^~" thing, so maybe it wouldn't
> have been directly useful.
>
English is not my native language and I'm really bad at it so this can
be the explanation of my misunderstanding. :/
Anyway maybe the section about location could be reorganized a bit to
explain possibilities ([ = | ~ | ~* | ^~ ]) in a dedicated part.

>
> That looks reasonable. "^~" only matters if you have (top level) regex
> matches -- which here, you don't.
>
> (Avoiding top level regex matches makes it very easy to know which
> location{} will match any particular request. That's usually considered
> a Good Thing.)
>
Ok, good to know.

> In this case, you want different fastcgi_param lines for different php
> scripts -- so repeating the common config (by using "include") and adding
> the specific parts, like you have done, is probably the best way.
Thanks for this confirmation.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite and FastCGI.

Thomas Martin October 09, 2012 08:04AM

Re: Rewrite and FastCGI.

Francis Daly October 09, 2012 08:54AM

Re: Rewrite and FastCGI.

Thomas Martin October 09, 2012 10:52AM

Re: Rewrite and FastCGI.

Francis Daly October 10, 2012 08:38AM

Re: Rewrite and FastCGI.

Thomas Martin October 11, 2012 03:50AM

Re: Rewrite and FastCGI.

Andre Jaenisch October 11, 2012 07:14AM

Re: Rewrite and FastCGI.

Thomas Martin October 11, 2012 07:22AM

Re: Rewrite and FastCGI.

tysonlee October 10, 2012 05:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready