• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Non rewrite link for pages(lighttpd, nginx)

Hubertus

Chevereto Member
Hey, what links of pages(contact,tos) I use for non rewrite server. I need this to make rewrite ruls for lighttpd.

something like: example.com/?pages=contact.php ?
 
Why not setup Apache and Nginx together? Let Nginx serve the static files while Apache can process the PHP requests and .htaccess files.
 
Pure nginx implementation need to emulate htaccess, I think that lighty also needs that... Actually I don't know how to do it but I will ask to a close friend who runs Chevereto on a nginx server.

Btw, In the server requirements there is clear that you need apache or something that can understand mod_rewrite. Just telling you.
 
I need just simple link to page contact using PHP. For page with image we have http://example.com/?v=pzgRq.png there must me something for page contact/about/tos - then I'll make my rewrite rules.

Rodolfo is you find out, what rewrite rules use for nginx or lighttpd that should tell me what php links are used for pages.

Thanks
 
Ok, the setup of my friend is nginx + php-fpm and this:
Code:
location / {
    index index.html index.htm index.php;
    try_files $uri $uri/ /index.php;
}

Basically, he uses the php-fpm to handle the request, here is the full snipet: http://pastie.org/2565916

Now, that is one way to achieve it. Since I notice that this will happen someday, I made Chevereto handlings pretty similar to Wordpress... Therefore, a lot of Wordpress guides on how to run rewrite rules on any server that isn't Apache works 😛

Take a look at this: http://michaelshadle.com/2009/03/19/finally-using-nginxs-try-files-directive But this uses a controller... Meaning that you need a non-friendly version of that, like "q=blabla&w=bleble..." but Chevereto hasn't that, all the URL are made to be friendly and there is no ugly version of it.

But you can do something like this: http://lyncd.com/2008/10/running-wordpress-on-nginx/ and it will work.

I hope that some of this configurations works for you 😉
 
Back
Top