This PR introduces a globally applied mod_remoteip configuration for handling client IPs, preparing for future rate-limiting configurations. It also specifies a salt state to manage remoteip.conf, creates a symlink to define the configuration, and another symlink to enable the configuration.
To verify these changes locally:
bring up the salt-master, laptop:psf-salt user$ vagrant up salt-master
bring up the loadbalancer, laptop:psf-salt user$ vagrant up loadbalancer
bring up hg, laptop:psf-salt user$ vagrant up hg
in another window, ssh into the vagrant hg box, laptop:psf-salt user$ vagrant ssh hg
in another window, from your local computer, run the curl command curl -k https://127.0.0.1:20010/hello -H "Host: hg.python.org"
in the vagrant box, run sudo tail -f /var/log/apache2/hg.access.log | grep hello
This PR introduces a globally applied
mod_remoteip
configuration for handling client IPs, preparing for future rate-limiting configurations. It also specifies a salt state to manageremoteip.conf
, creates a symlink to define the configuration, and another symlink to enable the configuration.To verify these changes locally:
laptop:psf-salt user$ vagrant up salt-master
laptop:psf-salt user$ vagrant up loadbalancer
laptop:psf-salt user$ vagrant up hg
laptop:psf-salt user$ vagrant ssh hg
curl -k https://127.0.0.1:20010/hello -H "Host: hg.python.org"
sudo tail -f /var/log/apache2/hg.access.log | grep hello