as per my knowledge you will need to first install Nginx on aaPanel and then manually configure Rocket Nginx for optimization; You can download the Rocket Nginx script from GitHub & then follow the instructions to modify your Nginx configuration file.