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;
}
}
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;
}
}