Not sure if this is applicable to every instance of Nginx but I have just setup http://imgs.co on a Nginx server to speed things up. Since Nginx doesn't support .htaccess rewrite rules, you'll need to edit your nginx.conf file to tell Nginx how to behave.
Step 1: Open nginx.conf in the editor of your choice (vi / nano)
Step 2:
Find:
Then add below it the following...
Step 3: Restart Nginx
Now chevereto page URLs like: yoursite.com/blog will work!
If anyone is interested, I can write a guide on how to setup a Nginx server with Chevereto. Better yet, I can possibly create a free bash script that will automate *most* of the process for those of you who have a VPS or hosting account with SSH access. I'm bored and would be happy to contribute to Chevereto if possible 😉
Step 1: Open nginx.conf in the editor of your choice (vi / nano)
Step 2:
Find:
Code:
location / {
index index.html index.php;
Code:
server_tokens off;
if ($host ~* ^www\.(.*))
{
set $host_without_www $1;
rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent;
}
if (!-e $request_filename)
{
rewrite ^(.+)$ /index.php?q=$1 last;
}
Step 3: Restart Nginx
Code:
/etc/init.d/nginx restart
Now chevereto page URLs like: yoursite.com/blog will work!
If anyone is interested, I can write a guide on how to setup a Nginx server with Chevereto. Better yet, I can possibly create a free bash script that will automate *most* of the process for those of you who have a VPS or hosting account with SSH access. I'm bored and would be happy to contribute to Chevereto if possible 😉