Welcome! Log In Create A New Profile

Advanced

SocialEngine + Nginx (0.7version)

Posted by nikonrules 
SocialEngine + Nginx (0.7version)
May 03, 2013 03:51PM
Hi. I have checked the forum and there is one message on this but it is not of any assistance. I have a Turnkey Nginx stack installed along with Social Engine. The Nginx version bundled in this package is 0.7. I need assistance with the default.conf rewrite rules. I will be extremely grateful if anyone would be willing offer me assistance or advice.

Here is what I have so far. The site loads, but when you click on the various links you can clearly see that the rewrites are not configured correctly. I am very much a noob and am trying my best to learn as fast as possible. Again, any assistance will be appreciated.

Default.conf file contents:

server {
listen 80;
server_name (myservernameisinherejustnotposted);
root /var/www/;
index index.html index.php;

include /etc/nginx/include/php;

location / {
root /var/www;
index index.php;
if (!-e $request_filename) { rewrite ^(.*)$ /index.php?rewrite=1; }
}
location ~ index\.php {
root /var/www;
rewrite .* /index.php?rewrite=1 break;

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /var/www;

fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /var/www;

fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
}
}



Edited 1 time(s). Last edit at 05/03/2013 03:53PM by nikonrules.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready