Arka Posted September 10, 2023 Share Posted September 10, 2023 I'm setting up WHMCS for my hosting business and could use some help with Nginx rewrite rules. Any tips or examples? Also, what are your thoughts on using Nginx for WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
meaton Posted September 14, 2023 Share Posted September 14, 2023 (edited) location ~ /admin/(client!\.php|client/(.*)|table/(.*)|search!\.php|search/(.*)|apps|billing|setup|user|services|addons|domains|utilitiesemailmarketer!\.php|utilities/(.*)|logs|help!\.php|help/license|modules|image/(recent|upload)|validation_com/(.*))/?(.*)$ { rewrite ^/(.*)$ /admin/index.php?rp=/admin/$1/$2; } location ~ /(images/em|invoice|login|invite|password|account|store|download|knowledgebase|announcements|clientarea/ssl-certificates|user/(verification|accounts|profile|password|security|verify)|cart/(domain/renew)|domain/pricing|cart/order|images/kb)/?(.*)$ { rewrite ^/(.*)$ /index.php?rp=/$1/$2; } location ~ /auth/manage/client/links/?(.*)$ { rewrite ^/(.*)$ /index.php?rp=/auth/manage/client/links$1; } location ^~ /vendor/ { deny all; return 403; } Edit to match the proper paths for your setup Edited September 14, 2023 by meaton formatting 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.