Linux Sysadmin Blog

Linux Sysadmin Blog header image 4

Entries Tagged as 'Tips and Tricks'

Change Squid outgoing address

October 19th, 2009 · No Comments · Installation, sysadmin, Tips and Tricks

Typically Squid caching proxy server listen and outgoing IP address are the same. Sometimes, for various reasons we want to alter the outgoing IP address. The new address must first be brought up as an interface on the squid server. In squid.conf look for tcp_outgoing_address line, uncomment it and replace the default IP value with [...]

[Read more →]

Tags:

HowTo display PHP errors when you don’t have access to php.ini

September 15th, 2009 · 1 Comment · Centos, CLI, Debian, HowTo, sysadmin, Tips and Tricks

If you are using a shared server, or just have a limited account on your Buy Cipro Online company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors [...]

[Read more →]

Tags:

Using wildcards in nginx valid_referers

August 25th, 2009 · 3 Comments · HowTo, sysadmin, Tips and Tricks

This quick post will show how we can easily allow only certain http referrers see some location using nginx. This might be useful for example if you are using nginx as a static content provider and want to not allow everyone hot-linking your images and only your own sites. Doing something like this in nginx [...]

[Read more →]

Tags: ·

Using svn+ssh with a non-standard ssh port

August 17th, 2009 · 1 Comment · CLI, HowTo, sysadmin, Tips and Tricks

Many people use subversion over ssh for a simple and secure way to work on remotely hosted svn repositories. This is normally as simple as running: svn co svn+ssh://user@server/repo . If the remote ssh server is not running on the default ssh port (tcp 22) then this needs a little tweaking to get it working. [...]

[Read more →]

Tags: ··

Setup Nagios User to View Specific Host and Services

May 14th, 2009 · No Comments · HowTo, monitoring, Nagios, Tips and Tricks

This guide will help you setup Nagios user to have limited access to host and service checks. It is helpful when you want to allow your customers or clients to view and receive alerts on their servers and services, like for dedicated servers. Procedure: Contacts: Create new contact definitions for your client. define contact{ contact_name [...]

[Read more →]

Tags: ···