I run into the same issues with an installation of serendipity on nginx. I got some 404 Errors.
The Relative HTTP Path was not correctly set while installation (conf was set to /serendipity_admin.php/).
I have used the following nginx rewrite rule, for a workaround
Code: Select all
rewrite ^/serendipity_admin.php/(.*)$ /$1 last;
This rewrites all content after /serendipity_admin.php to /. Now i was able to use the system correctly and reconfigure the Relative HTTP Path in the Administration Configuration.
Note: Delete the before used rewrite rule, after fixing the path.
And for the rest of the rewrite configuration, simple used this config:
Code: Select all
location / {
index index.php;
# serve static files that exist without running other rewrite tests
if (-f $request_filename) {
expires 30d;
break;
}
# send all non-existing file or directory requests to index.php
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?$1 last;
}
}
Maybe this helps some users to migrate to nginx.