arctic-ice-cool Posted October 8, 2017 Share Posted October 8, 2017 I thought before moving over to Nginx that enough people were using it there would be a configuration available. Using an online converter for the config as offered by WHMCS Support led to the Knowledgebase not working. If anyone has WHMCS 7.3 running on NGINX with PHP-FPM 7.0 and could share the config, that would be fantastic? Thanks. Link to comment Share on other sites More sharing options...
arctic-ice-cool Posted October 9, 2017 Author Share Posted October 9, 2017 After spending all morning troubleshooting this, I finally settled on the below in my nginx.conf which appears to be working flawlessly. # WHMCS CONFIG location ~ /account/announcements/?(.*)$ { rewrite ^/(.*)$ /account/index.php?rp=/announcements/$1; } location ~ /account/downloads/?(.*)$ { rewrite ^/(.*)$ /account/index.php?rp=/downloads/$1; } location ~ /account/knowledgebase/?(.*)$ { rewrite ^/(.*)$ /account/index.php?rp=/knowledgebase/$1; } # END WHMCS CONFIG Will update if I have any problems. Working fine October 2017 with WHMCS 7.3 2 Link to comment Share on other sites More sharing options...
UHL Hosting Posted December 21, 2017 Share Posted December 21, 2017 On 10/9/2017 at 1:40 PM, arctic-ice-cool said: After spending all morning troubleshooting this, I finally settled on the below in my nginx.conf which appears to be working flawlessly. # WHMCS CONFIG location ~ /account/announcements/?(.*)$ { rewrite ^/(.*)$ /account/index.php?rp=/announcements/$1; } location ~ /account/downloads/?(.*)$ { rewrite ^/(.*)$ /account/index.php?rp=/downloads/$1; } location ~ /account/knowledgebase/?(.*)$ { rewrite ^/(.*)$ /account/index.php?rp=/knowledgebase/$1; } # END WHMCS CONFIG Will update if I have any problems. WHERE EXACTLY YOU PUT THIS IN YOUR NGINX FILE? Working fine October 2017 with WHMCS 7.3 THANK YOU! COSMIC Link to comment Share on other sites More sharing options...
tiptop Posted December 22, 2017 Share Posted December 22, 2017 how is the speed difference of your website with nginx ? Link to comment Share on other sites More sharing options...
arctic-ice-cool Posted December 23, 2017 Author Share Posted December 23, 2017 I've just checked as it's been a while since I did it, it's placed directly between the server directive within /etc/nginx/nginx.conf - a straight copy and paste. The difference in performance is incredible. Our system has gone from appearing like a slow wordpress website on an overly busy server to appearing like it's static html pages! It's running on a server with under quarter of the resources we had to throw at apache too! If anyone needs any direct help with this, I can arrange for one of our tech guys to either set it up for you on a server or offer assistance. Just send me a private message. 1 Link to comment Share on other sites More sharing options...
Recommended Posts