Category: Misc

SED – Search & Replace

Always handy to have sed in your bag of tricks:

Read More »

Syncing Content Between RackSpace Cloud Servers With Unison

We have two RackSpace Cloud Server running CentOS that need to have the web content kept in sync. Changes on either server need to be replicated to the other server. Easy way to get this accomplished is with the Unison File Syncronizer (http://www.cis.upenn.edu/~bcpierce/unison/). Here are the steps: 1. Install SSH keys for root on each server so SSH can run without passwords between the servers. 2. Add /etc/hosts file entries to map the private addresses of the servers to names.

3. Install Unison on each server:

4. Create a profile on each server at /root/.unison/sync_web.prf containing:

Notice the hostname “web2-priv” in red above. The file on web1 should reference web2-priv. The file on web2 should reference web1-priv. You’ll need to adjust the path listed in the file to match your environment. 5. Next create a script to run Unison with the profile created in the previous step.

Read More »

Hide NGINX version

For security reasons, if you want to configure nginx to hide it’s version in the server header just add: server_tokens off;

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.