2011-01-26, 04:28:39
Hi Marrco,
I am new to both GetSimple and to configuring Nginx (I have been using it for several months now following the basic setup found at http://library.linode.com )
I like your use of the try_files directive, which is very efficient if the entire site is based on GS. Instead of that approach I ported the Apache rewrite rules to:
Here
matches the parent page if any, and
supports slugs with or without a trailing / . I didn't want a regexp in the rewrite rule so general that it would match content in other (non-GetSimple) subdirectories on the site, including DokuWiki.
I agree with all your positive comments about Nginx. When I am more comfortable with its configuration files I'll migrate all my sites (hosted on various inexpensive VPSs) to it. I have been using Cherokee but had some problems with version upgrades and decided the user-friendly management interface wasn't worth it.
Regards,
Bill
I am new to both GetSimple and to configuring Nginx (I have been using it for several months now following the basic setup found at http://library.linode.com )
I like your use of the try_files directive, which is very efficient if the entire site is based on GS. Instead of that approach I ported the Apache rewrite rules to:
Code:
if (!-e $request_filename){
rewrite ^(/[A-Za-z0-9\-]+)?/([A-Za-z0-9\-]+)/?$ /index.php?id=$2 last;
}
Here
Code:
^(/[A-Za-z0-9\-]+)?
Code:
/?$
I agree with all your positive comments about Nginx. When I am more comfortable with its configuration files I'll migrate all my sites (hosted on various inexpensive VPSs) to it. I have been using Cherokee but had some problems with version upgrades and decided the user-friendly management interface wasn't worth it.
Regards,
Bill