Varnish Plugin on Amazon AWS with Elastic IP or NAT

Here are the two short steps required to ensure licensing is setup properly so you're able to use the plugin:

0) Retrieve the VALID_IP 

1) Create and this content to file /usr/local/apache/htdocs/prepend.php where VALID_IP is the licensed IP, which is visible in your client area by selecting the plugin service.




2) Open /usr/local/lib/php.ini and edit the variable auto_prepend_file so it looks like this:

auto_prepend_file = "/usr/local/apache/htdocs/prepend.php"
  • 8 Users Found This Useful
Was this answer helpful?

Related Articles

Fix REMOTE_ADDR so it reports correct IP instead of server IP in PHP

Here are the exact steps we follow: 1) Login in to destination server 2) wget...

Correct IP reporting in legacy software / scripts

The plugin follows reverse proxy software proper handling of X-Forwarded-For headers and in this...

Stop worpress wp-login.php brute force attacks with Varnish throttling (Rate Limit)

Version 1.8.4 of the cPanel Varnish Plugin has seen a new feature being introduced: the ability...

vBulletin correct reporting of IP address

It's recommended to make the following changes to includes/config.php so vB doesn't report...