4

How-to : Publish multiple URLs with single IP and HAProxy

-

Many times there is a need to publish multiple websites from internal network, but there is only one public IP address available.

How this can be done easy way? HAProxy can help us with it.

In example configuration I have 2 URLs registered to same public IP address:

  • first.laboratory.net
  • second.laboratory.net
  • third.laboratory.net

Here is how HAProxy configuration for given example looks like…

(more…)

0

TIps & Tricks : Searching for packages in Debian

-

If you want to install some packages on Debian and don’t know names of packages you can search in packages cache.

For example if you want to see all packages related to MySQL:

root@hostname:~# apt-cache search mysql
akonadi-backend-mysql - MySQL storage backend for Akonadi
ampache-themes - Themes for Ampache
aolserver4-nsmysql - AOLserver 4 module: module for accessing MySQL databases
libapq3.2.0 - Pluggable Ada 95 Binding to various database systems (library)
libapq3.2.0-dbg - Pluggable Ada 95 Binding to various database systems (debug)
libapq3.2.0-dev - Pluggable Ada 95 Binding to various database systems (development)
libaprutil1-dbd-mysql - Apache Portable Runtime Utility Library - MySQL Driver
asterisk-mysql - MySQL database protocol support for the Asterisk PBX
audiolink - makes managing and searching for music easier
auth2db - Powerful and eye-candy IDS logger, log viewer and alert generator
auth2db-common - Common configuration files for Auth2db backend and web frontend
auth2db-filters - Auth2db defaults filters pack
auth2db-frontend - Web frontend view for auth2DB log engine
automysqlbackup - daily, weekly and monthly backup for your MySQL database
autopostgresqlbackup - Automated tool to make periodic backups of PostgreSQL databases
backup-manager - command-line backup tool
backupninja - lightweight, extensible meta-backup system
bacula-common-mysql - network backup service - MySQL common files
bacula-common-mysql-dbg - network backup service - MySQL common files (debugging)
bacula-director-mysql - network backup service - MySQL storage for Director
...
root@hostname:~#
0

Config snippets : PostgreSQL : Listening on all IP addresses

-

After installation PostgreSQL is listening on localhost only. To change that adjustment has to be done in postgresql.conf.

(more…)

1

Code snippets : PostgreSQL : Add new superuser after PostgreSQL installation

-

After I instaled PostgreSQL on Amazon Linux AMI, first thing after database server was up and running I start thinking how to create user with administrative privileges, so I can access it using some management applications.

So, here is how to create superuser and set password, which will allow to access PostgreSQL using admin tools.

(more…)

0

Config snippets : Configuring static IP address on Debian 6.0

-

Just quick config snippet for Debian 6.0 which I came across when setting up few Debian Linux 6.0 virtual machines for recent network LAB. By default network adapter is set to get IP address from DHCP.

/etc/network/interfaces – dynamic IP address configuration

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface auto lo iface lo inet loopback
# The primary network interface allow-hotplug
eth0 iface eth0 inet dhcp

(more…)