For those of you who run the Nginx webserver on your VPS and wish to force all visitors to access your site via SSL you can do this quite easily.
Before the upgrade to IPB4, vpsBoard still ran site-wide https:// but the conversion was software based and wasn't forced by the web server (even though I previously thought I was forcing all content to be over https at the server level...) This was discovered when non-forum pages (Such as the txt file that StatusCake pings for uptime monitoring) was accessible to me via both http and https. Not a huge deal, but someone else also reported some strange SSL and access issues after the upgrade which forced me to review the matter further.
Anyhow, the fix was quite simple and I figured I'd share it for those interested in doing the same. This assumes you already have your SSL installed and working on your server. You may be running software such as Wordpress, Joomla, or any other random software installation that would normally force SSL for you but you can do this at the server level as well quite easily and more reliably.
All you need to do is add the following line to your website's nginx configuration:
rewrite ^/(.*) https://your-site.com/$1 permanent;
That's it. Nothing spectacular but worth sharing.
Before the upgrade to IPB4, vpsBoard still ran site-wide https:// but the conversion was software based and wasn't forced by the web server (even though I previously thought I was forcing all content to be over https at the server level...) This was discovered when non-forum pages (Such as the txt file that StatusCake pings for uptime monitoring) was accessible to me via both http and https. Not a huge deal, but someone else also reported some strange SSL and access issues after the upgrade which forced me to review the matter further.
Anyhow, the fix was quite simple and I figured I'd share it for those interested in doing the same. This assumes you already have your SSL installed and working on your server. You may be running software such as Wordpress, Joomla, or any other random software installation that would normally force SSL for you but you can do this at the server level as well quite easily and more reliably.
All you need to do is add the following line to your website's nginx configuration:
rewrite ^/(.*) https://your-site.com/$1 permanent;
That's it. Nothing spectacular but worth sharing.
Last edited by a moderator: