I am running Wordpress and NextCloud with Nginx on port 443 on my Webserver. I have it set up so that Wordpress is the dedicated homepage and it will ALWAYS load before NextCloud.
ISSUE: Wordpress does NOT use an external hard drive and loads within 3 seconds (the webserver is not the problem). However, Nextcloud DOES use an external hard drive and it requires to spin up the hard drive before you can log in (takes 15 seconds at least).
I WOULD LIKE TO: Make a script that to detects activity on port 443, so when someone accesses Wordpress (the homepage) the server can get a head start by spinning up the drive
How do I make a script that can detect activity on 443 and spin up the drive?