nginx default rewrite rules will not work with any invisionpower software

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
620
these will not work at all
location ~ \.php$
{
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/nginx_limits.conf;
if (-f $request_filename)
{
fastcgi_pass unix:/usr/local/php55/sockets/convoice.sock;
}
}
# use fastcgi for all php files
location ~ \.php53$
{
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/nginx_limits.conf;
if (-f $request_filename)
{
fastcgi_pass unix:/usr/local/php53/sockets/convoice.sock;
}
}
}

have to edit the user conf file to:
location / {
try_files $uri $uri/ /index.php;
}
location ~^(/page/).*(\.php)$ {
try_files $uri $uri/ /index.php;
}
for ipboard to work at all, even when NOT using furls in ipboard the base rules give page not found. the /page/ one is for when on of the addon modules (IP.Content) is installed.
now heres the issue, anytime anything is done those edited conf file gets over written.
cannot seem to find a way to enter rewrite rules in nginx here that persist.
 
as an update I changed from 2 php (5.5 and 5.3) to just 5.5 and now the entries I put in custom configs for users seem to stick.
need to test that a bit more.
stil though, anyone hosting people that use ipboard would need to add what I posted so their sites work as there is no way for any user to add any rewrite item in nginx here.
 
Back
Top