Categories
Troubleshooting

Using CMS Made Simple with Nginx

I am pretty much a WordPress guy these days, but I do have one legacy site on CMS Made Simple. I was migrating it over to my new Ubuntu server running Nginx, and was having issues.

The Issue

CMS Made Simple was thinking for some reason that the site was using SSL. I’m guessing the test for SSL wasn’t compatible with Nginx. I pinpointed it down to the fact that CMSMS was adding a <base> tag at the top of the site that contained https://.

The Fix

After a few hours I figured out the fix. You can tell CMSMS to disregard this <base> tag with one line of code in your config.php file:

$config['showbase'] = false;

That’s it. I didn’t see this specific fix out there at all, so I thought I’d make this quick post. I’m not sure why this tag is there to begin with.

By Ryan Tvenge

I'm a web developer and co-owner of Hoverboard that makes cool stuff on the web.

3 replies on “Using CMS Made Simple with Nginx”

Thank you so much for this! I have been banging my head against the wall for days trying to figure out why my images weren’t showing after migrating to nginx and why everything wanted to go to https and this fixed it! Thank you!!!!

The tip is actually not completely good.
For me the above solution did not work completely, because some files were taken from http and some from https.

You should do the following:
Edit your:
/etc/nginx/fastcgi_params

There is this line:
fastcgi_param HTTPS $https;

Replace it with this:
fastcgi_param HTTPS $https if_not_empty;

Now the complete problem is solved.

Damn! This didn’t work for me :/ After hours of searching for a solution, I caved in and set my ssl url to http 😀 However, now I’m going to try OrangeSputnik’s solution.

Example: $config[‘ssl_url’] = ‘http://myurl.com’;

Is there any solution to getting the pretty permalinks to work?

Leave a Reply

Your email address will not be published. Required fields are marked *

Tvenge Design