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.

<?php

  $_SERVER['SERVER_ADDR'] = 'VALID_IP';

?>

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

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...

Why is header "Age: 0" set?

The Age field that we set in the header is not meant for consumption by end user browsers like...

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...

vBulletin correct reporting of IP address

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