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

Correct IP reporting in legacy software / scripts

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

vBulletin correct reporting of IP address

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

Why does the plugin change the server header?

Normally, if you download and install Varnish (the source not the plugin) yourself, the headers...

Powered by WHMCompleteSolution