Welcome! Log In Create A New Profile

Advanced

Re: RewriteRule под nginx для SocialEngine

November 05, 2010 07:11AM
У меня все работает, в том числе и ajax.
Пришлось закомментировать выброс 403-х заголовков в ZF для работы социалки в закрытом режиме, но это мелочи.

Вот rewrite'ы, кому интересно:

[code]location / {
root /data/socialengine/htdocs/;
index index.php;
if (!-e $request_filename) { rewrite ^(.*)$ /index.php?rewrite=1; }
}
location ~ index\.php {
root /data/socialengine/htdocs/;
rewrite .* /index.php?rewrite=1 break;

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /data/socialengine/htdocs$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /data/socialengine/htdocs/;

fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
}
location /install/ {
root /data/socialengine/htdocs/;
index index.php;
if (!-e $request_filename) { rewrite ^(.*)$ /install/index.php?rewrite=1; }
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /data/socialengine/htdocs$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /data/socialengine/htdocs/;

fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
}[/code]
Subject Author Posted

RewriteRule под nginx для SocialEngine

docomoz November 01, 2010 04:08AM

Re: RewriteRule под nginx для SocialEngine

Alexey Samoylov November 02, 2010 01:36PM

Re: RewriteRule под nginx для SocialEngine

greenh November 04, 2010 05:42PM

Re[2]: RewriteRule nginx SocialEngine

Andrey Repin November 04, 2010 07:06PM

Re: RewriteRule под nginx для SocialEngine

docomoz November 05, 2010 07:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready