I use a WordPress plugin called Duplicator Pro and the best way of installing with their installers is to use the servers IP rather than the domain because that way it autofills & conects to the server easier, while also not triggering multiple ModSecurity rules.
The best installation URL is:
http://111.222.333.444/~customcpanelaccount/customfolder/installer.php
Instead of:
https://website.com/customfolder/installer.php
If you load either of those files it automatically redirects you to:
/customfolder/dup-installer/main.installer.php
However because the server has the following Apache/LiteSpeed rule, it automatically redirects the http:// to https:// which causes it to throw up the following message:
<IfModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
I'm trying to figure out a way to make the above Apache/LiteSpeed rule to only apply to domains, not direct IPs OR to make it so it doesn't trigger when using the file of installer.php
, main.installer.php
and the directory of /dup-installer/
It's a shame there is no FilesNotMatch / DirectoryNotMatch / LocationNotMatch type if statements.
Any one have any ideas, I would greatly appreciate the help/advice!