Permalinks and Nginx

5 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 19, 2014   (RSS)

By gversion - May 11, 2014

Hello,

I am thinking of changing from Apache to Nginx and I was wondering if someone could confirm whether or not the Permalinks add-on will still work.

I am still learning about Nginx but my current understanding is that .htaccess rules are not meant to be used so I am wondering if the re-write rules will still work.

I am assuming cmsBuilder will also work on Nginx, is that right? If anyone has any experience running cmsBuilder on Nginx then I'd be interested to hear how they are finding it.

Thanks,

Greg

By gversion - May 11, 2014

I just thought I'd update this with a link about why Nginx doesn't like .htaccess:

http://wiki.nginx.org/LikeApache-htaccess

Regards,

Greg

By gversion - May 19, 2014

Hi Dave,

l'm pleased to see that you guys are using Nginx. I'll certainly check out the links you've shared and I'll take on board your comments about balancing effort vs return when optimising the site.

My main concern is that the Permalinks plugin still works when I make the switch from Apache to Nginx, which I guess it will do from your response so that's good news!

I'm just planning for a high traffic website, there are no real performance issues currently ;)

Thanks again,

Greg

By Dave - May 19, 2014

Hi Greg, 

I think how Plesk works (which we use) is it uses nginx for some requests and Apache for others, and/or it uses nginx as a reverse proxy for some of the content.  So you'll definitely want to experiment.   I've heard a lot about people using non-Apache web servers for static content to increase performance and reduce memory/cpu.

All we use the .htaccess for is to tell Apache to redirect the request to cmsAdmin/plugins/permalinks/permalinks_dispatcher.php if it can't find a matching file or dir for the requested URL.  So if you can get it to do that you should be fine.  But we haven't done any direct testing with any of that.

Cheers,

Dave Edis - Senior Developer
interactivetools.com